Add TCP query

This commit is contained in:
Nick Peng
2018-06-24 00:05:09 +08:00
parent 0e72262be3
commit 5153d6cb51
5 changed files with 395 additions and 162 deletions

View File

@@ -14,4 +14,6 @@ char *gethost_by_addr(char *host, struct sockaddr *addr, socklen_t addr_len);
int parse_ip(const char *value, char *ip, int *port);
int set_fd_nonblock(int fd, int nonblock);
#endif