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
 
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

◆ SetupFDSets()

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

Definition at line 65 of file TCPReceiver.cc.

69  { //std::vector & gConnections) {
70  FD_ZERO(&ReadFDs);
71  FD_ZERO(&WriteFDs);
72  FD_ZERO(&ExceptFDs);
73 
74  // Add the listener socket to the read and except FD sets, if there
75  // is one.
76  if (ListeningSocket != -1) {
77  FD_SET(ListeningSocket, &ReadFDs);
78  FD_SET(ListeningSocket, &ExceptFDs);
79  }
80 
81  if (connectSocket != -1) {
82  FD_SET(connectSocket, &ReadFDs);
83  FD_SET(connectSocket, &ExceptFDs);
84  }
85  }

Referenced by HCAL_HLX::TCPReceiver::ReceiveLumiSection().