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 GROWL_APPSocketEventHandler(), http_client_socket_event_handler(), m2m_ip_cb(), and socket_cb().

SOCKET tstrSocketConnectMsg::sock

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

Referenced by m2m_ip_cb().