Lines Matching defs:socket
36 #include <sys/socket.h>
275 bool Protocol::_checkListen(std::string address, in_port_t port, int &socket)
282 socket = it->second[0]->GetListeningSocket();
313 int socket = INVALID_SOCKET;
314 bool exists = _checkListen("127.0.0.1", port, socket);
518 SOCKET socket = it->second->GetSocket();
519 FD_SET(socket, &rset);
520 if ((int)socket > fdCount) {
521 fdCount = (int)socket;
523 if ((fdMin == -1) || ((int)socket < fdMin)) {
524 fdMin = (int)socket;
604 // Data received from a socket that is not in the map.
620 PRINT("Received %d bytes from socket %d. Sending to LME\n", res, (int)s);
629 PRINT("Received 0 bytes from socket %d.\n", (int)s);
640 PRINT("Receive error on socket %d (%d): %s\n", (int)s, err, msg);
655 // Data received from a socket that is not in the map.
735 PRINT("Error %d in closing server socket at port %d.\n", err, p->GetPort());
1360 PRINT("Sent %d bytes of %d from AMT to channel %d with socket %d.\n",