Embedded TCP/IP stack
4.7.0
|
void fnet_socket_set_callback_on_rx | ( | void(*)(void) | callback | ) |
Registers the "Socket Rx" event handler callback.
callback | Pointer to the event-handler callback function. |
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
.