XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Functions
main.cpp File Reference
#include <stdint.h>
#include <_xeneva.h>
#include <stdio.h>
#include <sys/_keproc.h>
#include <sys/_kefile.h>
#include <sys/socket.h>
#include <sys/netdb.h>
#include <arpa/inet.h>
#include <string.h>
#include <sys/_ketime.h>
#include <time.h>
#include <unistd.h>
#include <stdlib.h>
Include dependency graph for main.cpp:

Classes

struct  ntp_packet_t
 

Macros

#define NTP_PORT   123
 
#define NTP_UNIX_EPOCH_DELTA   2208988800UL
 
#define NTP_POLL_TRIES   20
 
#define NTP_POLL_SLEEP_MS   150
 
#define NTP_SYNC_INTERVAL_SEC   1800
 
#define NTP_RETRY_BACKOFF_SEC   30
 

Functions

int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ NTP_POLL_SLEEP_MS

#define NTP_POLL_SLEEP_MS   150

◆ NTP_POLL_TRIES

#define NTP_POLL_TRIES   20

◆ NTP_PORT

#define NTP_PORT   123

◆ NTP_RETRY_BACKOFF_SEC

#define NTP_RETRY_BACKOFF_SEC   30

◆ NTP_SYNC_INTERVAL_SEC

#define NTP_SYNC_INTERVAL_SEC   1800

◆ NTP_UNIX_EPOCH_DELTA

#define NTP_UNIX_EPOCH_DELTA   2208988800UL

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)