Lines Matching refs:fSockfd
21 fSockfd = this->createSocket(); in SkSocket()
25 this->closeSocket(fSockfd); in ~SkSocket()
26 shutdown(fSockfd, 2); //stop sending/receiving in ~SkSocket()
250 if (bind(fSockfd, (sockaddr*)&serverAddr, sizeof(serverAddr)) < 0) { in SkTCPServer()
264 listen(fSockfd, MAX_WAITING_CLIENTS); in acceptConnections()
270 FD_SET(fSockfd, &workingSet); in acceptConnections()
274 int sel = select(fSockfd + 1, &workingSet, NULL, NULL, &timeout); in acceptConnections()
284 newfd = accept(fSockfd, (struct sockaddr*)&clientAddr, &clientLen); in acceptConnections()
314 this->addToMasterSet(fSockfd); in SkTCPClient()
330 SkASSERT(sockfd == fSockfd); in onFailedConnection()
331 this->closeSocket(fSockfd); in onFailedConnection()
332 fSockfd = this->createSocket(); in onFailedConnection()
334 this->addToMasterSet(fSockfd); in onFailedConnection()
343 int conn = connect(fSockfd, (sockaddr*)&fServerAddr, sizeof(fServerAddr)); in connectToServer()
351 this->onFailedConnection(fSockfd); in connectToServer()