void HCAL_HLX::SetupFDSets | ( | fd_set & | ReadFDs, |
fd_set & | WriteFDs, | ||
fd_set & | ExceptFDs, | ||
int | ListeningSocket = -1 , |
||
int | connectSocket = -1 |
||
) |
Definition at line 67 of file TCPReceiver.cc.
Referenced by HCAL_HLX::TCPReceiver::ReceiveLumiSection().
{ //std::vector & gConnections) { FD_ZERO(&ReadFDs); FD_ZERO(&WriteFDs); FD_ZERO(&ExceptFDs); // Add the listener socket to the read and except FD sets, if there // is one. if (ListeningSocket != -1) { FD_SET(ListeningSocket, &ReadFDs); FD_SET(ListeningSocket, &ExceptFDs); } if (connectSocket != -1) { FD_SET(connectSocket, &ReadFDs); FD_SET(connectSocket, &ExceptFDs); } }