Lines Matching refs:clientSocket
134 Socket *clientSocket = listenSocket->accept(); in serverLoop() local
139 if(clientSocket->select(10)) in serverLoop()
141 bytesReceived = clientSocket->receive(receiveBuffer, bufferLength); in serverLoop()
147 respond(clientSocket, receiveBuffer); in serverLoop()
152 delete clientSocket; in serverLoop()
171 void SwiftConfig::respond(Socket *clientSocket, const char *request) in respond() argument
179 return send(clientSocket, OK, page()); in respond()
200 int bytesReceived = clientSocket->receive(receiveBuffer, bufferLength); in respond()
219 return send(clientSocket, OK, page()); in respond()
223 return send(clientSocket, OK, profile()); in respond()
228 return send(clientSocket, NotFound); in respond()
515 void SwiftConfig::send(Socket *clientSocket, Status code, std::string body) in send() argument
532 clientSocket->send(message.c_str(), (int)message.length()); in send()