Lines Matching refs:servaddr
51 struct sockaddr_in servaddr;
70 memset(&servaddr, 0, sizeof (servaddr));
71 servaddr.sin_family = AF_INET;
72 RUNTIME_CHECK(inet_pton(AF_INET, host, &servaddr.sin_addr) == 1);
73 servaddr.sin_port = htons(atoi(port));
116 (struct sockaddr *) &servaddr, sizeof(servaddr));
143 struct sockaddr_in servaddr, recaddr, recvaddr;
171 memset(&servaddr, 0, sizeof (servaddr));
172 servaddr.sin_family = AF_INET;
173 RUNTIME_CHECK(inet_pton(AF_INET, shost, &servaddr.sin_addr) == 1);
174 servaddr.sin_port = htons(atoi(sport));
242 (struct sockaddr *) &servaddr, sizeof(servaddr));
322 struct sockaddr_in servaddr;
341 memset(&servaddr, 0, sizeof (servaddr));
342 servaddr.sin_family = AF_INET;
343 RUNTIME_CHECK(inet_pton(AF_INET, host, &servaddr.sin_addr) == 1);
344 servaddr.sin_port = htons(atoi(port));
400 r = connect(sockfd, (struct sockaddr*)&servaddr,
401 sizeof(servaddr));