blob: f90c281224c09fc8bc275ffe5826c0c75de1dd36 [file] [log] [blame]
akmhoque8fdd6412012-12-04 15:05:33 -06001#ifndef _UTILITY_H_
2#define _UTILITY_H_
3
4char * getLocalTimeStamp(void);
5char * getGmTimeStamp(void);
6long int get_current_time_sec(void);
7void get_current_timestamp_micro(char * microSec);
8long int get_time_diff(const char *time1, const char *time2);
9
10void startLogging(char *loggingDir);
11void writeLogg(const char *source_file, const char *function, const int line, const char *format, ...);
akmhoque09c0afa2012-12-14 09:27:00 -060012struct sockaddr_in * get_ip_from_hostname(char *hostname);
akmhoquea37b52c2012-12-14 11:16:36 -060013int get_ip_from_hostname_02(char * hostname , char* ip);
akmhoque8fdd6412012-12-04 15:05:33 -060014#endif