Embedded TCP/IP stack  4.7.0

◆ fnet_ping_callback_t

typedef void(* fnet_ping_callback_t) (fnet_error_t result, fnet_size_t packet_count, struct fnet_sockaddr *target_addr, void *cookie)

Prototype of the PING-service callback function that is called when the PING-service has completed the requesting.

Parameters
resultResult of the PING-service request, which equals to:
  • FNET_ERR_OK - if correct reply is received.
  • FNET_ERR_TIMEDOUT - if there is no correct response during specified timeout.
  • Error code, if any happened during receiving.
packet_countNumber of request packets to be sent, till the PING-service release.
It equals to 0, when the last packet was sent.
addressPointer to a socket address, which equals to:
  • Target socket address, if correct reply is received during specified timeout.
  • FNET_NULL, if there is no correct response during specified timeout.
cookieUser-application specific parameter. It's set during the PING service initialization as part of fnet_ping_params_t.
See also
fnet_ping_init(), fnet_ping_params_t

Definition at line 73 of file fnet_ping.h.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net