29 #if FNET_CFG_PING || defined(__DOXYGEN__) 96 #if defined(__cplusplus) 146 #if defined(__cplusplus) 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...
fnet_uint8_t pattern
Pattern byte to fill out the packet. This is useful for diagnosing data-dependent problems in a netwo...
fnet_uint32_t fnet_time_t
Unsigned integer type representing time uinits. It can be seconds or milliseconds.
fnet_return_t fnet_ping_init(fnet_ping_params_t *params)
Initializes PING service.
fnet_size_t packet_size
The size of the echo request, in bytes (without ICMP header). The maximum value is limited by FNET_C...
fnet_return_t
General return codes, used by most of API functions.
void fnet_ping_release(void)
Releases the PING service.
unsigned long fnet_size_t
Unsigned integer type representing the size in bytes.
fnet_time_t timeout
Timeout value in milliseconds, that service waits for reply on ping request.
fnet_uint8_t ttl
IPv4 Time To Live (TTL) or IPv6 Hop Limit value. .
void * cookie
Optional application-specific parameter. It's passed to the callback function as input parameter...
fnet_ping_callback_t callback
Pointer to the callback function defined by fnet_ping_callback_t. It is called when the correct echo ...
Initialization parameters for the fnet_ping_init() function.
fnet_size_t packet_count
Number of packets to be sent.
fnet_error_t
Possible socket error codes, returned by the fnet_error_get(), or used by the SO_ERROR option...
Socket address structure.