Embedded TCP/IP stack: fnet_ping_request

FNET

fnet_return_t fnet_ping_request ( struct fnet_ping_params params)

Initializes PING service.

Parameters
paramsInitialization parameters.
Returns
This function returns:
See also
fnet_ping_params, fnet_ping_callback_t, fnet_ping_release()

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.


© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net