NetApp_SockRx() (TCP/UDP)
Receive application data via socket, with error handling. See section C-13-46 for more information.
...
net_app.h/net_app.c
Prototype
Arguments
sock_id
This is the socket ID returned by NetApp_SockOpen()/
NetSock_Open()/socket()
when the socket was created or by NetApp_SockAccept()/NetSock_Accept()/accept()
when a connection was accepted.
...
NET_SOCK_FLAG_RX_DATA_PEEK/
MSG_PEEK
Receive socket data without consuming it
NET_SOCK_FLAG_RX_NO_BLOCK/
MSG_DONTWAIT
Receive socket data without blocking
In most cases, this flag would be set to NET_SOCK_FLAG_NONE/0
.
...
Pointer to variable that will receive the error code from this function:
NET_APP_ERR_NONE
NET_APP_ERR_INVALID_ARG
NET_APP_ERR_INVALID_OP
NET_APP_ERR_FAULT
NET_APP_ERR_FAULT_TRANSITORY
NET_APP_ERR_CONN_CLOSED
NET_APP_ERR_DATA_BUF_OVF
NET_ERR_RX
Returned Value
Number of data bytes received, if no errors.
...