Embedded TCP/IP stack: fnet_ping_callback_t

FNET

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.
See also
fnet_ping_request(), fnet_ping_params

Definition at line 90 of file fnet_ping.h.


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