Lines Matching refs:clientSock
174 int local_clientSock = this->clientSock; in Shutdown()
177 this->listenSock = this->clientSock = -1; in Shutdown()
221 CHECK_EQ(clientSock, -1); /* must not already be talking */ in Accept()
244 clientSock = sock; in Accept()
249 SetNoDelay(clientSock); in Accept()
304 clientSock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP); in Establish()
305 if (clientSock < 0) { in Establish()
313 if (connect(clientSock, &addr.addrPlain, sizeof(addr)) != 0) { in Establish()
315 close(clientSock); in Establish()
316 clientSock = -1; in Establish()
324 SetNoDelay(clientSock); in Establish()
351 CHECK_NE(clientSock, -1); in ProcessIncoming()
372 fd = clientSock; in ProcessIncoming()
438 if (clientSock >= 0 && FD_ISSET(clientSock, &readfds)) { in ProcessIncoming()
439 … readCount = read(clientSock, input_buffer_ + input_count_, sizeof(input_buffer_) - input_count_); in ProcessIncoming()
478 int cc = TEMP_FAILURE_RETRY(write(clientSock, input_buffer_, kMagicHandshakeLen)); in ProcessIncoming()