Lines Matching refs:clientSock
179 int local_clientSock = this->clientSock;
182 this->listenSock = this->clientSock = -1;
226 CHECK_EQ(clientSock, -1); /* must not already be talking */
249 clientSock = sock;
254 SetNoDelay(clientSock);
332 clientSock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
333 if (clientSock < 0) {
341 if (connect(clientSock, &addr.addrPlain, sizeof(addr)) != 0) {
344 close(clientSock);
345 clientSock = -1;
354 SetNoDelay(clientSock);
381 CHECK_NE(clientSock, -1);
402 fd = clientSock;
468 if (clientSock >= 0 && FD_ISSET(clientSock, &readfds)) {
470 read(clientSock, input_buffer_ + input_count_, sizeof(input_buffer_) - input_count_);
509 int cc = TEMP_FAILURE_RETRY(write(clientSock, input_buffer_, kMagicHandshakeLen));