Embedded TCP/IP stack: SNTP Client Configuration Parameters

FNET

Embedded TCP/IP stack  4.1.0

Detailed Description

This section describes the parameters specific to the SNTP Client.
The user may override and change the default values in the application-specific configuration file fnet_user_config.h.

Macros

#define FNET_CFG_SNTP
 SNTP client support: More...
 
#define FNET_CFG_SNTP_PORT   (FNET_HTONS(123U))
 Default SNTP port number (in network byte order).
The SNTP client uses this port for sending and receiving of SNTP messages.
It can be changed during the SNTP Client initialization by the fnet_sntp_init() function.
Default value is FNET_HTONS(123).

. More...

 
#define FNET_CFG_SNTP_RETRANSMISSION_MAX   (2U)
 The maximum number of times the SNTP client will retransmit the request message to a SNTP server.
Default value is 5.

. More...

 
#define FNET_CFG_SNTP_RETRANSMISSION_TIMEOUT   (1U) /* seconds */
 Timeout for the response from the remote SNTP server (in seconds).

If the SNTP client does not receive any response from a SNTP server, it sends new request message.
Default value is 1.

. More...

 

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