akmhoque | 59980a5 | 2012-08-09 12:36:09 -0500 | [diff] [blame] | 1 | #ifndef _UTILITY_H_ |
| 2 | #define _UTILITY_H_ |
| 3 | |
| 4 | char * getLocalTimeStamp(void); |
akmhoque | c928669 | 2012-08-16 09:57:58 -0500 | [diff] [blame] | 5 | char * getGmTimeStamp(void); |
akmhoque | f71d908 | 2012-08-22 12:51:53 -0400 | [diff] [blame] | 6 | long int get_current_time_sec(void); |
akmhoque | 03004e6 | 2012-09-06 01:12:28 -0500 | [diff] [blame] | 7 | void get_current_timestamp_micro(char * microSec); |
akmhoque | da5b683 | 2012-09-13 22:33:55 -0500 | [diff] [blame] | 8 | long int get_time_diff(const char *time1, const char *time2); |
akmhoque | 53f6422 | 2012-09-05 13:57:51 -0500 | [diff] [blame] | 9 | |
akmhoque | bfefef2 | 2012-09-26 10:09:34 -0500 | [diff] [blame] | 10 | void startLogging(char *loggingDir); |
| 11 | void writeLogg(const char *source_file, const char *function, const int line, const char *format, ...); |
akmhoque | b77b95f | 2013-02-08 12:28:47 -0600 | [diff] [blame] | 12 | struct sockaddr_in * get_ip_from_hostname(char *hostname); |
| 13 | int get_ip_from_hostname_02(char * hostname , char* ip); |
akmhoque | 7adb277 | 2013-03-05 16:30:59 -0600 | [diff] [blame] | 14 | char * get_current_timestamp_micro_v2(void); |
| 15 | char * get_current_user_home(void); |
| 16 | char * get_current_user_default_keystore(void); |
akmhoque | edb68d9 | 2013-03-05 10:18:16 -0600 | [diff] [blame] | 17 | |
| 18 | int add_ccn_uri_name(struct ccn_charbuf *res_name, struct ccn_charbuf *add); |
| 19 | |
akmhoque | 59980a5 | 2012-08-09 12:36:09 -0500 | [diff] [blame] | 20 | #endif |