Lines Matching defs:sock
99 static int init_client_ip(int *sock,unsigned char ip[4], int port, int type);
100 static int init_server(int *sock, int port, int type);
101 static int init_server_long(int *sock, int port,char *ip, int type);
102 static int do_accept(int acc_sock, int *sock, char **host);
231 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)
280 *sock=s;
286 int sock;
302 if (do_accept(accept_socket,&sock,&name) == 0)
309 sock = accept_socket;
310 i=(*cb)(name,sock, context);
313 SHUTDOWN2(sock);
322 static int init_server_long(int *sock, int port, char *ip, int type)
366 *sock=s;
376 static int init_server(int *sock, int port, int type)
378 return(init_server_long(sock, port, NULL, type));
381 static int do_accept(int acc_sock, int *sock, char **host)
468 *sock=ret;