src/network.c

changeset 93
9b64437262a2
parent 92
84e0dec5db16
child 94
864f59271974
equal deleted inserted replaced
92:84e0dec5db16 93:9b64437262a2
60 60
61 static int getaddrinfo_intrnl(char *host, char *port, struct addrinfo **info) { 61 static int getaddrinfo_intrnl(char *host, char *port, struct addrinfo **info) {
62 struct addrinfo hints = {0}; 62 struct addrinfo hints = {0};
63 hints.ai_socktype = SOCK_STREAM; 63 hints.ai_socktype = SOCK_STREAM;
64 hints.ai_protocol = IPPROTO_TCP; 64 hints.ai_protocol = IPPROTO_TCP;
65 hints.ai_family = AF_INET;
65 66
66 return getaddrinfo(host, port, &hints, info); 67 return getaddrinfo(host, port, &hints, info);
67 } 68 }
68 69
69 int net_find(Server *server, char *host, short port) { 70 int net_find(Server *server, char *host, short port) {

mercurial