Lines Matching defs:port
21 int ip_create_listener_split(const char *ip, unsigned short port)
37 in_addr.sin_port = htons(port);
38 /* Bind to the required port/address/interface */
51 int ip_create_connection_split(const char *ip, unsigned short port)
66 in_addr.sin_port = htons(port);
86 unsigned long port;
92 * only specified a port. */
113 if(!int_strtoul(ptr, &port) || (port > 65535))
116 *parsed_port = (unsigned short)port;
123 unsigned short port;
125 if(!ip_parse_address(address, &ip, &port, 1))
127 return ip_create_listener_split(ip, port);
133 unsigned short port;
135 if(!ip_parse_address(address, &ip, &port, 0))
137 return ip_create_connection_split(ip, port);