#include <stdio.h>
#include <time.h>
#include <windows.h>
#include <curl/curl.h>
Go to the source code of this file.
|
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) |
|
#define HTTP_COMMAND_GET 1 |
#define HTTP_COMMAND_HEAD 0 |
#define SYNCTIME_UA "synctime/1.0" |
int conf_init |
( |
conf_t * |
conf | ) |
|
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
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 |
|
) |
| |
const char* DayStr[] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"} |
Initial value:=
{
"http://pool.ntp.org/",
"http://nist.time.gov/",
"http://www.google.com/"
}
Definition at line 108 of file synctime.c.
Initial value:= {"Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}
Definition at line 116 of file synctime.c.