Definition at line 10 of file getutime.c.
References clktime, Date, dot2ip(), dateinfo::dt_boot, dateinfo::dt_bootvalid, fprintf(), getlocalip(), memset(), NetData, ntim2xtim, ntohl, network::ntpserver, OK, stderr, SYSERR, TIMELPORT, TIMEOUT, TIMERPORT, TIMESERVER, TIMETIMEOUT, TRUE, udp_recv(), udp_register(), udp_release(), and udp_send().
Referenced by gettime().
62 memset((
char *)&ntpmsg, 0x00,
sizeof(ntpmsg));
64 retval =
udp_send(slot, (
char *)&ntpmsg,
sizeof(ntpmsg));
73 retval =
udp_recv(slot, (
char *) &ntpmsg,
sizeof(ntpmsg),
int32 udp_recv(uid32, char *, int32, uint32)
status udp_send(uid32, char *, int32)
unsigned char byte
符号なし8ビット値(unsigned char)
#define TIMEOUT
システムコールがタイムアウトした場合
#define TRUE
Boolean True(1)
int int32
符号あり32ビット整数(int)
uid32 udp_register(uint32, uint16, uint16)
void * memset(void *, const int, int32)
指定のByteブロックに対して、同じ値をNバイト分書き込む。
status udp_release(uid32)
int32 fprintf(int, char *,...)
uint32 clktime
起動してからの現在の時間[s]
unsigned int uint32
符号なし32ビット整数(unsigned int)
uint32 dot2ip(char *, uint32 *)
int32 uid32
UDPテーブルディスクリプタのID.