Lines Matching refs:sin1
72 static struct sockaddr_in sin1; /* shared between do_child and create_server */
163 length = sizeof(sin1);
164 recvfrom(sockfd, rbuf, 4096, 0, (struct sockaddr *)&sin1,
213 socklen_t slen = sizeof(sin1);
221 sin1.sin_family = AF_INET;
222 sin1.sin_port = 0; /* pick random free port */
223 sin1.sin_addr.s_addr = INADDR_ANY;
225 if (bind(sockfd, (struct sockaddr *)&sin1, sizeof(sin1)) < 0) {
230 if (getsockname(sockfd, (struct sockaddr *)&sin1, &slen) == -1)
252 inet_aton("127.0.0.1", &sin1.sin_addr);
258 if (connect(s, (struct sockaddr *)&sin1, sizeof(sin1)) < 0) {