Lines Matching refs:serv_addr
45 struct sockaddr_in serv_addr; in ne_net_listen() local
70 serv_addr.sin_family = AF_INET; in ne_net_listen()
71 serv_addr.sin_addr.s_addr = htonl(INADDR_ANY); in ne_net_listen()
72 serv_addr.sin_port = htons(port); in ne_net_listen()
74 if (bind(sfd,(struct sockaddr *)&(serv_addr),sizeof(struct sockaddr)) == -1) in ne_net_listen()
152 struct sockaddr_in serv_addr; in ne_net_connect() local
174 memset(&serv_addr, 0, sizeof(serv_addr)); in ne_net_connect()
175 serv_addr.sin_family = AF_INET; in ne_net_connect()
176 serv_addr.sin_port = htons(port); in ne_net_connect()
197 memcpy(&(serv_addr.sin_addr), hp.h_addr_list[x], sizeof(struct in_addr)); in ne_net_connect()
199 r = connect(fd, (struct sockaddr *) &(serv_addr), sizeof(struct sockaddr_in)); in ne_net_connect()
272 my_sock->remote_ip = ntohl(serv_addr.sin_addr.s_addr); in ne_net_connect()