Home
last modified time | relevance | path

Searched refs:serv_addr (Results 1 – 1 of 1) sorted by relevance

/external/clearsilver/util/
Dneo_net.c45 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()
[all …]