#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 |
Definition at line 36 of file TCPReceiver.h.
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.
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.
|
private |
Definition at line 55 of file TCPReceiver.h.
|
private |
Definition at line 56 of file TCPReceiver.h.
|
private |
Definition at line 61 of file TCPReceiver.h.
|
private |
Definition at line 59 of file TCPReceiver.h.
|
private |
Definition at line 58 of file TCPReceiver.h.
|
private |
Definition at line 60 of file TCPReceiver.h.