KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
ntp.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <netdb.h>
#include <arch/rtc.h>
#include <kos/dbgio.h>
#include <kos/init.h>
#include <kos/net.h>
#include <kos/thread.h>

Macros

#define NTP_PORT   "123"
 
#define NTP_SERVER   "us.pool.ntp.org"
 
#define NTP_DELTA   2208988800ULL
 
#define ERR_EXIT()
 

Functions

 KOS_INIT_FLAGS (INIT_DEFAULT|INIT_NET)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ ERR_EXIT

#define ERR_EXIT ( )
Value:
{ thd_sleep(2000); exit(EXIT_FAILURE); }
Do not use use thd_sleep() instead") static inline void timer_spin_sleep(unsigned int ms)
Definition timer.h:202

Referenced by main().

◆ NTP_DELTA

#define NTP_DELTA   2208988800ULL

Referenced by main().

◆ NTP_PORT

#define NTP_PORT   "123"

Referenced by main().

◆ NTP_SERVER

#define NTP_SERVER   "us.pool.ntp.org"

Referenced by main().

Function Documentation

◆ KOS_INIT_FLAGS()

KOS_INIT_FLAGS ( INIT_DEFAULT| INIT_NET)

◆ main()