| 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); |