Embedded TCP/IP stack
4.2.0
|
fnet_return_t fnet_ping_request | ( | struct fnet_ping_params * | params | ) |
Initializes PING service.
params | Initialization parameters. |
This function initializes the PING service . It allocates all resources needed and registers the PING service in the polling list.
After the initialization, the user application should call the main polling function fnet_service_poll() periodically to run the PING service routine in the background.
The fnet_ping_callback_t callback function, which is set in params
, will be called when correct echo-reply is received or timeout is occurred.
The PING service is released automatically.
Call fnet_ping_release() if you need to terminate it earlier.