Embedded TCP/IP stack
4.1.0
|
fnet_sntp.h
101 typedef void(*fnet_sntp_callback_resolved_t)(const fnet_sntp_timestamp_t *timestamp, void *cookie);
Initialization parameters for the fnet_sntp_init() function.
Definition: fnet_sntp.h:106
void(* fnet_sntp_callback_resolved_t)(const fnet_sntp_timestamp_t *timestamp, void *cookie)
Prototype of the SNTP-client callback function that is called when the SNTP client has completed the ...
Definition: fnet_sntp.h:101
void fnet_sntp_release(void)
Aborts the time resolving and releases the SNTP-client service.
SNTP timestamp (RFC4330) is represented as a 64-bit unsigned fixed-point number, in seconds relative ...
Definition: fnet_sntp.h:69
void fnet_sntp_timestamp2utc(const fnet_sntp_timestamp_t *timestamp, fnet_sntp_utc_t *utc)
Converts the SNTP timestamp to the Coordinated Universal Time (UTC).
fnet_sntp_callback_resolved_t callback
Pointer to the callback function defined by fnet_sntp_callback_resolved_t. It is called when the SNTP...
Definition: fnet_sntp.h:110
void * cookie
Optional application-specific parameter. It's passed to the callback function as input parameter...
Definition: fnet_sntp.h:113
fnet_return_t fnet_sntp_init(struct fnet_sntp_params *params)
Initializes the SNTP client service and starts the time resolving.
struct fnet_sockaddr sntp_server_addr
Socket address of the remote SNTP/NTP server to connect to.
Definition: fnet_sntp.h:108
© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net