src/server/util/socket.c

changeset 704
778dcf4ad63c
parent 702
ee80191310ca
equal deleted inserted replaced
703:395c62fac7e5 704:778dcf4ad63c
63 } 63 }
64 64
65 if(port) { 65 if(port) {
66 *port = ntohs(addr.sin_port); 66 *port = ntohs(addr.sin_port);
67 } 67 }
68 68
69 return socket_fd; 69 return socket_fd;
70 } 70 }
71 71
72 int util_socket_connect_local(short port) { 72 int util_socket_connect_local(short port) {
73 int fd = socket(AF_INET, SOCK_STREAM, 0); 73 int fd = socket(AF_INET, SOCK_STREAM, 0);

mercurial