Lines Matching defs:sock1
80 int sock1, sock2;
88 sock1 = socket(PF_INET, SOCK_DGRAM, 0);
89 if (sock1 < 0)
91 if (bind(sock1, (struct sockaddr *)&sin, sizeof(sin)) < 0)
95 if (connect(sock1, (struct sockaddr *)&sin, sizeof(sin)) < 0)
110 fdp[0] = sock1;
119 int ret, sock1, sock2, sock3;
131 sock1 = socket(PF_INET, SOCK_STREAM, 0);
132 if (sock1 < 0)
134 if (bind(sock1, (struct sockaddr *)&sin, sizeof(sin)) < 0)
137 if (listen(sock1, -1) < 0)
160 sock3 = accept(sock1, NULL, NULL);
180 close(sock1);