Home | History | Annotate | Download | only in apps

Lines Matching defs:ip

105 static int init_client_ip(int *sock,unsigned char ip[4], int port, int type);
107 static int init_server_long(int *sock, int port,char *ip, int type);
109 static int host_ip(char *str, unsigned char ip[4]);
239 unsigned char ip[4];
241 if (!host_ip(host,&(ip[0])))
245 return(init_client_ip(sock,ip,port,type));
248 static int init_client_ip(int *sock, unsigned char ip[4], int port, int type)
260 ((unsigned long)ip[0]<<24L)|
261 ((unsigned long)ip[1]<<16L)|
262 ((unsigned long)ip[2]<< 8L)|
263 ((unsigned long)ip[3]);
326 static int init_server_long(int *sock, int port, char *ip, int type)
337 if (ip == NULL)
342 memcpy(&server.sin_addr.s_addr,ip,4);
344 memcpy(&server.sin_addr,ip,4);
475 int extract_host_port(char *str, char **host_ptr, unsigned char *ip,
489 if ((ip != NULL) && !host_ip(str,ip))
500 static int host_ip(char *str, unsigned char ip[4])
510 BIO_printf(bio_err,"invalid IP address\n");
513 ip[0]=in[0];
514 ip[1]=in[1];
515 ip[2]=in[2];
516 ip[3]=in[3];
536 ip[0]=he->h_addr_list[0][0];
537 ip[1]=he->h_addr_list[0][1];
538 ip[2]=he->h_addr_list[0][2];
539 ip[3]=he->h_addr_list[0][3];