CMS 3D CMS Logo

Classes | Functions

HCAL_HLX Namespace Reference

Classes

struct  BEAM_INFO
struct  BRAN_BX_DATA
struct  BRAN_DATA
struct  BRAN_INFO
struct  BRANA_INFO
struct  BRANP_INFO
struct  CMS_LUMI_DIP_DATA
struct  CMS_LUMI_LH_DIP_DATA
struct  CMS_SCAN_TUNE_DATA
struct  CMS_STATUS_DATA
struct  DAQ_HEART_BEAT
struct  DIP_ACQUISITION_MODE
struct  DIP_COMBINED_DATA
struct  DIP_STRUCT_BASE
struct  ET_SUM_NIBBLE
struct  ET_SUM_SECTION
struct  HLT_PATH
struct  HLTRIGGER
struct  LEVEL1_PATH
struct  LEVEL1_TRIGGER
struct  LHC_BEAM_CONFIG
struct  LHC_BEAM_ENERGY_DATA
struct  LHC_BEAM_FBCT_INTENSITY_DATA
struct  LHC_BEAM_INTENSITY_DATA
struct  LHC_BEAM_MODE_DATA
struct  LHC_FILL_DATA
struct  LHC_NIBBLE
struct  LHC_SECTION
struct  LUMI_DETAIL
struct  LUMI_NIBBLE_HEADER
struct  LUMI_RAW_HEADER
struct  LUMI_SECTION
struct  LUMI_SECTION_HEADER
struct  LUMI_SECTION_SUB_HEADER
struct  LUMI_SUMMARY
struct  OCCUPANCY_NIBBLE
struct  OCCUPANCY_SECTION
struct  RCMS_CONFIG
class  ROOTFileBase
class  ROOTFileMerger
class  ROOTFileReader
class  ROOTFileTransfer
class  ROOTFileWriter
class  ROOTSchema
struct  RUN_QUALITY
struct  RUN_SUMMARY
class  TCPReceiver
class  TimeStamp
struct  TRIGGER_LUMI_SEGMENT
struct  VDM_SCAN_DATA

Functions

void SetupFDSets (fd_set &ReadFDs, fd_set &WriteFDs, fd_set &ExceptFDs, int ListeningSocket=-1, int connectSocket=-1)

Function Documentation

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);
    }
}