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 */
52 int ip_create_connection_split(const char *ip, unsigned short port)
67 in_addr.sin_port = htons(port);
86 unsigned long port;
93 * specified a port.
117 if (!int_strtoul(ptr, &port) || (port > 65535))
120 *parsed_port = (unsigned short)port;
127 unsigned short port;
129 if (!ip_parse_address(address, &ip, &port, 1))
131 return ip_create_listener_split(ip, port);
137 unsigned short port;
139 if (!ip_parse_address(address, &ip, &port, 0))
141 return ip_create_connection_split(ip, port);