akmhoque | 8fdd641 | 2012-12-04 15:05:33 -0600 | [diff] [blame] | 1 | #ifndef _UTILITY_H_ |
| 2 | #define _UTILITY_H_ |
| 3 | |
| 4 | char * getLocalTimeStamp(void); |
| 5 | char * getGmTimeStamp(void); |
| 6 | long int get_current_time_sec(void); |
| 7 | void get_current_timestamp_micro(char * microSec); |
| 8 | long int get_time_diff(const char *time1, const char *time2); |
| 9 | |
| 10 | void startLogging(char *loggingDir); |
| 11 | void writeLogg(const char *source_file, const char *function, const int line, const char *format, ...); |
akmhoque | 09c0afa | 2012-12-14 09:27:00 -0600 | [diff] [blame] | 12 | struct sockaddr_in * get_ip_from_hostname(char *hostname); |
akmhoque | a37b52c | 2012-12-14 11:16:36 -0600 | [diff] [blame] | 13 | int get_ip_from_hostname_02(char * hostname , char* ip); |
akmhoque | 8fdd641 | 2012-12-04 15:05:33 -0600 | [diff] [blame] | 14 | #endif |