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 66 of file TCPReceiver.cc.

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

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