src/network.c

changeset 48
0cedda2544da
parent 46
4dcfb4c58b6d
child 55
54ea19938d57
equal deleted inserted replaced
47:d726e4b46c33 48:0cedda2544da
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

mercurial