Microchip® Advanced Software Framework

tstrSocketAcceptMsg Struct Reference

Socket accept status.

Socket accept information is returned through this structure in response to the asynchronous call to the accept function. This structure together with the event SOCKET_MSG_ACCEPT are passed-in parameters to the callback function.

#include <socket.h>

Data Fields

SOCKET sock
 
struct sockaddr_in strAddr
 

SOCKET tstrSocketAcceptMsg::sock

On a successful accept operation, the return information is the socket ID for the accepted connection with the remote peer. Otherwise a negative error code is returned to indicate failure of the accept operation.

Referenced by m2m_ip_cb(), and socket_cb().

struct sockaddr_in tstrSocketAcceptMsg::strAddr

Socket address structure for the remote peer.

Referenced by m2m_ip_cb().