CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
HCAL_HLX::TCPReceiver Class Reference

#include <TCPReceiver.h>

Public Member Functions

int Connect ()
 
int Disconnect ()
 
void GenerateFakeData (HCAL_HLX::LUMI_SECTION &localSection)
 
void GenerateRandomData (HCAL_HLX::LUMI_SECTION &localSection)
 
bool IsConnected ()
 
int ReceiveLumiSection (HCAL_HLX::LUMI_SECTION &localSection)
 
void SetIP (std::string IP)
 
int SetMode (unsigned char)
 
int SetPort (unsigned short int)
 
 TCPReceiver ()
 
 TCPReceiver (unsigned short int, std::string, unsigned char)
 
bool VerifyFakeData (HCAL_HLX::LUMI_SECTION &localSection)
 
 ~TCPReceiver ()
 

Private Attributes

unsigned char acquireMode
 
bool Connected
 
struct sockaddr_in servAddr
 
std::string servIP
 
unsigned short servPort
 
int tcpSocket
 

Detailed Description

Definition at line 36 of file TCPReceiver.h.

Constructor & Destructor Documentation

HCAL_HLX::TCPReceiver::TCPReceiver ( )

Definition at line 34 of file TCPReceiver.cc.

HCAL_HLX::TCPReceiver::TCPReceiver ( unsigned short int  port,
std::string  IP,
unsigned char  mode = 0 
)

Definition at line 49 of file TCPReceiver.cc.

HCAL_HLX::TCPReceiver::~TCPReceiver ( )

Definition at line 63 of file TCPReceiver.cc.

Member Function Documentation

int HCAL_HLX::TCPReceiver::Connect ( )

Definition at line 232 of file TCPReceiver.cc.

int HCAL_HLX::TCPReceiver::Disconnect ( )

Definition at line 288 of file TCPReceiver.cc.

void HCAL_HLX::TCPReceiver::GenerateFakeData ( HCAL_HLX::LUMI_SECTION localSection)

Definition at line 316 of file TCPReceiver.cc.

void HCAL_HLX::TCPReceiver::GenerateRandomData ( HCAL_HLX::LUMI_SECTION localSection)

Definition at line 395 of file TCPReceiver.cc.

bool HCAL_HLX::TCPReceiver::IsConnected ( )

Definition at line 175 of file TCPReceiver.cc.

int HCAL_HLX::TCPReceiver::ReceiveLumiSection ( HCAL_HLX::LUMI_SECTION localSection)

Definition at line 88 of file TCPReceiver.cc.

void HCAL_HLX::TCPReceiver::SetIP ( std::string  IP)

Definition at line 222 of file TCPReceiver.cc.

int HCAL_HLX::TCPReceiver::SetMode ( unsigned char  mode)

Definition at line 202 of file TCPReceiver.cc.

int HCAL_HLX::TCPReceiver::SetPort ( unsigned short int  port)

Definition at line 182 of file TCPReceiver.cc.

bool HCAL_HLX::TCPReceiver::VerifyFakeData ( HCAL_HLX::LUMI_SECTION localSection)

Definition at line 469 of file TCPReceiver.cc.

Member Data Documentation

unsigned char HCAL_HLX::TCPReceiver::acquireMode
private

Definition at line 55 of file TCPReceiver.h.

bool HCAL_HLX::TCPReceiver::Connected
private

Definition at line 56 of file TCPReceiver.h.

struct sockaddr_in HCAL_HLX::TCPReceiver::servAddr
private

Definition at line 61 of file TCPReceiver.h.

std::string HCAL_HLX::TCPReceiver::servIP
private

Definition at line 59 of file TCPReceiver.h.

unsigned short HCAL_HLX::TCPReceiver::servPort
private

Definition at line 58 of file TCPReceiver.h.

int HCAL_HLX::TCPReceiver::tcpSocket
private

Definition at line 60 of file TCPReceiver.h.