Lines Matching refs:port
109 static int init_client_ip(int *sock, unsigned char ip[4], int port, int type);
110 static int init_server(int *sock, int port, int type);
111 static int init_server_long(int *sock, int port, char *ip, int type);
234 int init_client(int *sock, char *host, int port, int type)
241 return init_client_ip(sock, ip, port, type);
244 static int init_client_ip(int *sock, unsigned char ip[4], int port, int type)
255 them.sin_port = htons((unsigned short)port);
292 int do_server(int port, int type, int *ret,
301 if (!init_server(&accept_socket, port, type))
328 static int init_server_long(int *sock, int port, char *ip, int type)
339 server.sin_port = htons((unsigned short)port);
381 static int init_server(int *sock, int port, int type)
383 return (init_server_long(sock, port, NULL, type));
485 BIO_printf(bio_err, "no port defined\n");