Embedded TCP/IP stack
4.1.0
|
fnet_ping.h
90 typedef void(*fnet_ping_callback_t)(fnet_error_t result, fnet_size_t packet_count, struct fnet_sockaddr *target_addr, void* cookie);
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 th...
Definition: fnet_ping.h:90
The PING service is waying a timeout till next request.
Definition: fnet_ping.h:67
fnet_uint32_t fnet_time_t
Unsigned integer type representing time uinits. It can be ticks, seconds or milliseconds.
Definition: fnet_timer.h:66
unsigned long fnet_size_t
Unsigned integer type representing the size in bytes.
Definition: fnet_stdlib.h:56
The PING service is going to send echo request.
Definition: fnet_ping.h:63
fnet_uint8_t pattern
Pattern byte to fill out the packet. This is useful for diagnosing data-dependent problems in a netwo...
Definition: fnet_ping.h:104
fnet_ping_callback_t callback
Pointer to the callback function defined by fnet_ping_callback_t. It is called when the correct echo ...
Definition: fnet_ping.h:106
fnet_ping_state_t fnet_ping_state(void)
Retrieves the current state of the PING service (for debugging purposes).
fnet_size_t packet_size
The size of the echo request, in bytes (without ICMP header). The maximum value is limited by FNET_C...
Definition: fnet_ping.h:98
Initialization parameters for the fnet_ping_request() function.
Definition: fnet_ping.h:95
fnet_return_t fnet_ping_request(struct fnet_ping_params *params)
Initializes PING service.
fnet_ping_state_t
PING service states. Used mainly for debugging purposes.
Definition: fnet_ping.h:59
fnet_time_t timeout
Timeout value in milliseconds, that service waits for reply on ping request.
Definition: fnet_ping.h:101
fnet_error_t
Possible socket error codes, returned by the fnet_error_get(), or used by the SO_ERROR option...
Definition: fnet_error.h:42
The PING service is not initialized or is released.
Definition: fnet_ping.h:61
void * cookie
Optional application-specific parameter. It's passed to the callback function as input parameter...
Definition: fnet_ping.h:109
© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net