Lines Matching refs:port
172 uint16_t port;
176 uint16_t port;
189 /* initialize a new IPv4 socket address, the IP address and port are
192 void sock_address_init_inet( SockAddress* a, uint32_t ip, uint16_t port );
195 * and the port in host endianess.
198 void sock_address_init_in6 ( SockAddress* a, const uint8_t* ip6[16], uint16_t port );
222 /* return the port number of a given socket address, or -1 if it's a Unix one */
225 /* set the port number of a given socket address, don't do anything for Unix ones */
226 void sock_address_set_port( SockAddress* a, uint16_t port );
248 uint16_t port,
265 /* resolve a host and service/port name into a list of SockAddress objects.
281 const char* port,
284 /* resolve a string containing host and port name into a list of SockAddress
285 * objects. Parameter host_and_port should be in format [host:]port, where
287 * 'port' is a decimal numeric value for the port. 'host' is optional, and if
389 int socket_loopback_server( int port, SocketType type );
391 /* connect to a port on the host's loopback interface */
392 int socket_loopback_client( int port, SocketType type );
405 int socket_network_client( const char* host, int port, SocketType type );
407 /* create an IPv4 socket and binds it to a given port of the host's interface */
408 int socket_anyaddr_server( int port, SocketType type );