Lines Matching refs:tcpsock
87 int tcpsock, msgsock;
94 if ((tcpsock = socket(AF_INET, SOCK_STREAM, 0)) < 0)
97 if (setsockopt(tcpsock,
106 if (bind(tcpsock,
110 if (listen(tcpsock, 5) < 0)
114 if ((msgsock = accept(tcpsock,
139 int tcpsock, on;
148 if ((tcpsock = socket(AF_INET, SOCK_STREAM, 0)) < 0)
151 if (setsockopt(tcpsock,
164 r = connect(tcpsock, (struct sockaddr *) &inetaddr,
169 close(tcpsock);
180 if (sendfile(fd, tcpsock, 0, statb.st_size, NULL, &off, 0) == -1)