#include <NTP.h>
Public Member Functions | |
NTP () | |
virtual | ~NTP () |
virtual OStatus | DoInit (const OSystemEvent &event) |
virtual OStatus | DoStart (const OSystemEvent &event) |
virtual OStatus | DoStop (const OSystemEvent &event) |
virtual OStatus | DoDestroy (const OSystemEvent &event) |
void | GetHostByNameCont (ANTENVMSG msg) |
void | SendCont (ANTENVMSG msg) |
void | ReceiveCont (ANTENVMSG msg) |
Public Attributes | |
OSubject * | subject [numOfSubject] |
OObserver * | observer [numOfObserver] |
Private Member Functions | |
void | GetHostByName (char *hostname) |
OStatus | InitUDPBuffer () |
OStatus | CreateUDPEndpoint () |
OStatus | CloseUDPEndpoint () |
OStatus | SendNTPPacket () |
OStatus | Send () |
OStatus | Receive () |
Private Attributes | |
antStackRef | ipstackRef |
antModuleRef | dnsEndpoint |
UDPConnection | connection |
char | ntpserver [128] |
Static Private Attributes | |
const longword | SECONDS_OF_100YEARS = 3155673600U |
|
|
|
|
|
Definition at line 391 of file NTP.cc. Referenced by ReceiveCont(), and SendCont(). |
|
Definition at line 353 of file NTP.cc. References connection, UDPConnection::endpoint, IP_ADDR_ANY(), ipstackRef, NTP_BUFFER_SIZE, and UDPConnection::state. Referenced by GetHostByNameCont(). |
|
|
|
|
|
Definition at line 68 of file NTP.cc. References dnsEndpoint, GetHostByName(), InitUDPBuffer(), ipstackRef, NTP_CONF_FILE, and ntpserver. |
|
|
|
Definition at line 126 of file NTP.cc. References dnsEndpoint, and ipstackRef. Referenced by DoStart(). |
|
Definition at line 141 of file NTP.cc. References connection, CreateUDPEndpoint(), is_ipv4addr_dotted_decimal_notation(), UDPConnection::sendAddress, and SendNTPPacket(). |
|
Definition at line 304 of file NTP.cc. References byte, connection, ipstackRef, NTP_BUFFER_SIZE, UDPConnection::recvBuffer, UDPConnection::recvData, UDPConnection::recvSize, UDPConnection::sendBuffer, UDPConnection::sendData, and UDPConnection::state. Referenced by DoStart(). |
|
Definition at line 245 of file NTP.cc. References connection, UDPConnection::endpoint, ipstackRef, UDPConnection::recvData, and UDPConnection::recvSize. Referenced by SendCont(). |
|
Definition at line 261 of file NTP.cc. References byte, CloseUDPEndpoint(), connection, NTPMessage::data, GetTimeDifference(), longword, UDPConnection::recvData, UDPConnection::recvSize, sbyte, and SetTime(). |
|
Definition at line 203 of file NTP.cc. References connection, UDPConnection::endpoint, ipstackRef, UDPConnection::sendAddress, UDPConnection::sendData, UDPConnection::sendPort, UDPConnection::sendSize, and UDPConnection::state. Referenced by SendNTPPacket(). |
|
Definition at line 224 of file NTP.cc. References CloseUDPEndpoint(), connection, Receive(), UDPConnection::recvSize, and UDPConnection::state. |
|
Definition at line 189 of file NTP.cc. References byte, connection, Send(), UDPConnection::sendData, UDPConnection::sendPort, and UDPConnection::sendSize. Referenced by GetHostByNameCont(). |
|
Definition at line 56 of file NTP.h. Referenced by CreateUDPEndpoint(), GetHostByNameCont(), InitUDPBuffer(), Receive(), ReceiveCont(), Send(), SendCont(), and SendNTPPacket(). |
|
Definition at line 55 of file NTP.h. Referenced by DoStart(), and GetHostByName(). |
|
Definition at line 54 of file NTP.h. Referenced by CreateUDPEndpoint(), DoStart(), GetHostByName(), InitUDPBuffer(), Receive(), and Send(). |
|
Definition at line 57 of file NTP.h. Referenced by DoStart(). |
|
|
|
|
|
|