Microchip® Advanced Software Framework

tstrSocketConnectMsg Struct Reference

Socket connect status.

Socket connect information is returned through this structure in response to an asynchronous call to the connect socket function or the secure socket function. This structure and the event SOCKET_MSG_CONNECT or SOCKET_MSG_SECURE are passed in parameters to the callback function. If the application receives this structure with a negative value in s8Error, the application should call close().

#include <socket.h>

Data Fields

sint8 s8Error
 
SOCKET sock
 

sint8 tstrSocketConnectMsg::s8Error

Connect error code:

  • ZERO for a successful connect or successful secure.
  • Otherwise a negative error code corresponding to the type of error.

Referenced by m2m_ip_cb().

SOCKET tstrSocketConnectMsg::sock

Socket ID referring to the socket passed to the connect or secure function call.

Referenced by m2m_ip_cb().