54 } else { |
54 } else { |
55 return 1; |
55 return 1; |
56 } |
56 } |
57 } |
57 } |
58 |
58 |
59 int getaddrinfo_intrnl(char *host, char *port, struct addrinfo **info) { |
59 static int getaddrinfo_intrnl(char *host, char *port, struct addrinfo **info) { |
60 struct addrinfo hints; |
60 struct addrinfo hints; |
61 memset(&hints, 0, sizeof(hints)); |
61 memset(&hints, 0, sizeof(hints)); |
62 hints.ai_socktype = SOCK_STREAM; |
62 hints.ai_socktype = SOCK_STREAM; |
63 hints.ai_protocol = IPPROTO_TCP; |
63 hints.ai_protocol = IPPROTO_TCP; |
64 |
64 |