SntpClientContext Struct Reference

SNTP client context. More...

#include <sntp_client.h>

Data Fields

SntpClientState state
 SNTP client state. More...
 Underlying network interface. More...
IpAddr serverIpAddr
 NTP server address. More...
uint16_t serverPort
 NTP server port. More...
systime_t timeout
 Timeout value. More...
 Underlying socket. More...
systime_t startTime
 Request start time. More...
systime_t retransmitStartTime
 Time at which the last request was sent. More...
systime_t retransmitTimeout
 Retransmission timeout. More...
uint8_t message [NTP_MAX_MSG_SIZE]
 Buffer that holds the NTP request/response. More...
size_t messageLen
 Length of the NTP message, in bytes. More...
uint32_t kissCode
 Kiss code. More...

Detailed Description

SNTP client context.

Definition at line 94 of file sntp_client.h.

Field Documentation

◆ interface

NetInterface* interface

Underlying network interface.

Definition at line 97 of file sntp_client.h.

◆ kissCode

uint32_t kissCode

Kiss code.

Definition at line 107 of file sntp_client.h.

◆ message

uint8_t message[NTP_MAX_MSG_SIZE]

Buffer that holds the NTP request/response.

Definition at line 105 of file sntp_client.h.

◆ messageLen

size_t messageLen

Length of the NTP message, in bytes.

Definition at line 106 of file sntp_client.h.

◆ retransmitStartTime

systime_t retransmitStartTime

Time at which the last request was sent.

Definition at line 103 of file sntp_client.h.

◆ retransmitTimeout

systime_t retransmitTimeout

Retransmission timeout.

Definition at line 104 of file sntp_client.h.

◆ serverIpAddr

IpAddr serverIpAddr

NTP server address.

Definition at line 98 of file sntp_client.h.

◆ serverPort

uint16_t serverPort

NTP server port.

Definition at line 99 of file sntp_client.h.

◆ socket

Socket* socket

Underlying socket.

Definition at line 101 of file sntp_client.h.

◆ startTime

systime_t startTime

Request start time.

Definition at line 102 of file sntp_client.h.

◆ state

SNTP client state.

Definition at line 96 of file sntp_client.h.

◆ timeout

systime_t timeout

Timeout value.

Definition at line 100 of file sntp_client.h.

The documentation for this struct was generated from the following file: