Registers the "Socket Rx" event handler callback.
- Parameters
-
callback | Pointer to the event-handler callback function. |
- See also
- FNET_CFG_SOCKET_CALLBACK_ON_RX
This function registers the handler
callback function for the "Socket Rx" event.
This event occurs when the socket layer receives any packet for any existing socket. It can be a packet with or without data-payload including ACK, FIN and SYN.
For example, it can be used to wake-up a sleeping RTOS application waiting for a network activity. To stop the event handling, set callback
parameter to zero value.
This function is available only if FNET_CFG_SOCKET_CALLBACK_ON_RX is set to 1
.