Typedefs | Enumerations
Enumeration/Typedefs
Collaboration diagram for Enumeration/Typedefs:

Typedefs

typedef sint8 SOCKET
 Definition for socket handler data type. Socket ID,used with all socket operations to uniquely identify the socket handler. The ID is uniquely assigned at socket creation when calling socket operation. More...
 
typedef sint8 SOCKET
 
typedef void(* tpfAppResolveCb) (uint8 *pu8DomainName, uint32 u32ServerIP)
 DNS resolution callback function. Applications requiring DNS resolution should register their callback through this function by calling registerSocketCallback. The following callback is triggered in response to an asynchronous call to the gethostbyname function (DNS Resolution callback). More...
 
typedef void(* tpfAppSocketCb) (SOCKET sock, uint8 u8Msg, void *pvMsg)
 The main socket application callback function. Applications register their main socket application callback through this function by calling registerSocketCallback. In response to events received, the following callback function is called to handle the corresponding asynchronous function called. Example: bind, connect,...etc. More...
 
typedef void(* tpfPingCb) (uint32 u32IPAddr, uint32 u32RTT, uint8 u8ErrorCode)
 PING Callback. More...
 

Enumerations

enum  tenuSocketCallbackMsgType {
  SOCKET_MSG_BIND = 1, SOCKET_MSG_LISTEN, SOCKET_MSG_DNS_RESOLVE, SOCKET_MSG_ACCEPT,
  SOCKET_MSG_CONNECT, SOCKET_MSG_RECV, SOCKET_MSG_SEND, SOCKET_MSG_SENDTO,
  SOCKET_MSG_RECVFROM
}
 Asynchronous APIs make use of callback functions in-order to return back the results once the corresponding socket operation is completed. Hence resuming the normal execution of the application code while the socket operation returns the results. Callback functions expect event messages to be passed in, in-order to identify the operation they're returning the results for. The following enum identifies the type of events that are received in the callback function. More...
 

Detailed Description

Specific Enumeration-typedefs used for socket operations

Typedef Documentation

◆ SOCKET [1/2]

Definition for socket handler data type. Socket ID,used with all socket operations to uniquely identify the socket handler. The ID is uniquely assigned at socket creation when calling socket operation.

Definition at line 195 of file m2m_socket_host_if.h.

◆ SOCKET [2/2]

typedef sint8 SOCKET

Definition at line 403 of file socket.h.

◆ tpfAppResolveCb

tpfAppResolveCb

DNS resolution callback function. Applications requiring DNS resolution should register their callback through this function by calling registerSocketCallback. The following callback is triggered in response to an asynchronous call to the gethostbyname function (DNS Resolution callback).

Parameters
[in]pu8DomainNameDomain name of the host.
[in]u32ServerIPServer IPv4 address encoded in Network byte order format. If it is Zero, then the DNS resolution failed.

Definition at line 732 of file socket.h.

◆ tpfAppSocketCb

tpfAppSocketCb

The main socket application callback function. Applications register their main socket application callback through this function by calling registerSocketCallback. In response to events received, the following callback function is called to handle the corresponding asynchronous function called. Example: bind, connect,...etc.

Parameters
[in]sockSocket ID for the callback.

The socket callback function is called whenever a new event is received in response to socket operations.

Parameters
[in]u8MsgSocket event type. Possible values are:
[in]pvMsgPointer to message structure. Existing types are:
See also
tenuSocketCallbackMsgType tstrSocketRecvMsg tstrSocketConnectMsg tstrSocketAcceptMsg tstrSocketListenMsg tstrSocketBindMsg

Definition at line 714 of file socket.h.

◆ tpfPingCb

tpfPingCb

PING Callback.

The function delivers the ping statistics for the sent ping triggered by calling m2m_ping_req.

Parameters
[in]u32IPAddrDestination IP.
[in]u32RTTRound Trip Time.
[in]u8ErrorCodePing error code. It may be one of:
  • PING_ERR_SUCCESS
  • PING_ERR_DEST_UNREACH
  • PING_ERR_TIMEOUT

Definition at line 755 of file socket.h.

Enumeration Type Documentation

◆ tenuSocketCallbackMsgType

Asynchronous APIs make use of callback functions in-order to return back the results once the corresponding socket operation is completed. Hence resuming the normal execution of the application code while the socket operation returns the results. Callback functions expect event messages to be passed in, in-order to identify the operation they're returning the results for. The following enum identifies the type of events that are received in the callback function.

Application Use: In order for application developers to handle the pending events from the network controller through the callback functions, a function call must be made to the function m2m_wifi_handle_events at least once for each socket operation.

See also
bind
listen
accept
connect
send
recv
Enumerator
SOCKET_MSG_BIND 

Bind socket event.

SOCKET_MSG_LISTEN 

Listen socket event.

SOCKET_MSG_DNS_RESOLVE 

DNS Resolution event.

SOCKET_MSG_ACCEPT 

Accept socket event.

SOCKET_MSG_CONNECT 

Connect socket event.

SOCKET_MSG_RECV 

Receive socket event.

SOCKET_MSG_SEND 

Send socket event.

SOCKET_MSG_SENDTO 

Sendto socket event.

SOCKET_MSG_RECVFROM 

Recvfrom socket event.

Definition at line 505 of file socket.h.



inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:18:00