Update code

This commit is contained in:
Nick Peng
2018-06-08 00:56:32 +08:00
parent db3c7df954
commit 4ee70e3eac
11 changed files with 204 additions and 282 deletions

5
util.h
View File

@@ -5,8 +5,13 @@
#include <netdb.h>
#define PORT_NOT_DEFINED -1
#define MAX_IP_LEN 64
unsigned long get_tick_count();
char *gethost_by_addr(char *host, struct sockaddr *addr, socklen_t addr_len);
int parse_ip(char *value, char *ip, int *port);
#endif