Lines Matching refs:clientSocket
133 Socket *clientSocket = listenSocket->accept(); in serverLoop() local
138 if(clientSocket->select(10)) in serverLoop()
140 bytesReceived = clientSocket->receive(receiveBuffer, bufferLength); in serverLoop()
146 respond(clientSocket, receiveBuffer); in serverLoop()
151 delete clientSocket; in serverLoop()
170 void SwiftConfig::respond(Socket *clientSocket, const char *request) in respond() argument
178 return send(clientSocket, OK, page()); in respond()
199 int bytesReceived = clientSocket->receive(receiveBuffer, bufferLength); in respond()
218 return send(clientSocket, OK, page()); in respond()
222 return send(clientSocket, OK, profile()); in respond()
227 return send(clientSocket, NotFound); in respond()
513 void SwiftConfig::send(Socket *clientSocket, Status code, std::string body) in send() argument
530 clientSocket->send(message.c_str(), (int)message.length()); in send()