Go to the source code of this file.
Classes | |
struct | conf_t |
Defines | |
#define | HTTP_COMMAND_GET 1 |
#define | HTTP_COMMAND_HEAD 0 |
#define | MAX_STRING 256 |
#define | MAX_STRING1 MAX_STRING+1 |
#define | SYNCTIME_UA "synctime/1.0" |
Functions | |
int | conf_init (conf_t *conf) |
int | main (int argc, char *argv[]) |
void | showUsage (void) |
int | SyncTime_CURL_Fetch (CURL *curl, char *URL_Str, char *OutFileName, int HttpGetBody) |
void | SyncTime_CURL_Init (CURL *curl, char *proxy_port, char *proxy_user_password) |
size_t | SyncTime_CURL_WriteHeader (void *ptr, size_t size, size_t nmemb, void *stream) |
size_t | SyncTime_CURL_WriteOutput (void *ptr, size_t size, size_t nmemb, void *stream) |
Variables | |
int | AutoSyncTime |
const char * | DayStr [] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"} |
const char | DefaultTimeServer [3][MAX_STRING1] |
SYSTEMTIME | LOCALTime |
const char * | MthStr [] |
int | ShowAllHeader |
SYSTEMTIME | SYSTime |
#define HTTP_COMMAND_GET 1 |
Definition at line 125 of file synctime.c.
#define HTTP_COMMAND_HEAD 0 |
Definition at line 124 of file synctime.c.
#define MAX_STRING 256 |
Definition at line 96 of file synctime.c.
#define MAX_STRING1 MAX_STRING+1 |
Definition at line 97 of file synctime.c.
#define SYNCTIME_UA "synctime/1.0" |
Definition at line 99 of file synctime.c.
Definition at line 241 of file synctime.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 252 of file synctime.c.
void showUsage | ( | void | ) |
Definition at line 221 of file synctime.c.
int SyncTime_CURL_Fetch | ( | CURL * | curl, |
char * | URL_Str, | ||
char * | OutFileName, | ||
int | HttpGetBody | ||
) |
Definition at line 200 of file synctime.c.
void SyncTime_CURL_Init | ( | CURL * | curl, |
char * | proxy_port, | ||
char * | proxy_user_password | ||
) |
Definition at line 184 of file synctime.c.
size_t SyncTime_CURL_WriteHeader | ( | void * | ptr, |
size_t | size, | ||
size_t | nmemb, | ||
void * | stream | ||
) |
Definition at line 135 of file synctime.c.
size_t SyncTime_CURL_WriteOutput | ( | void * | ptr, |
size_t | size, | ||
size_t | nmemb, | ||
void * | stream | ||
) |
Definition at line 128 of file synctime.c.
int AutoSyncTime |
Definition at line 120 of file synctime.c.
const char* DayStr[] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"} |
Definition at line 115 of file synctime.c.
const char DefaultTimeServer[3][MAX_STRING1] |
{ "http://pool.ntp.org/", "http://nist.time.gov/", "http://www.google.com/" }
Definition at line 108 of file synctime.c.
SYSTEMTIME LOCALTime |
Definition at line 122 of file synctime.c.
const char* MthStr[] |
{"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}
Definition at line 116 of file synctime.c.
int ShowAllHeader |
Definition at line 119 of file synctime.c.
SYSTEMTIME SYSTime |
Definition at line 121 of file synctime.c.