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(), handle_tcp_socket_cb(), handle_tcpip_connect(), http_client_socket_event_handler(), IperfSocketEventHandler(), 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(), and socket_cb().