Classes | Defines | Functions | Variables
synctime.c File Reference
#include <stdio.h>
#include <time.h>
#include <windows.h>
#include <curl/curl.h>
Include dependency graph for synctime.c:

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 Documentation

#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.


Function Documentation

int conf_init ( conf_t conf)

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.


Variable Documentation

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.

Initial value:
{
  "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[]
Initial value:
 {"Jan", "Feb", "Mar", "Apr", "May", "Jun",
                        "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}

Definition at line 116 of file synctime.c.

Definition at line 119 of file synctime.c.

SYSTEMTIME SYSTime

Definition at line 121 of file synctime.c.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:09