FACT++  1.0
tcp_connection Class Reference
+ Inheritance diagram for tcp_connection:
+ Collaboration diagram for tcp_connection:

Public Types

typedef boost::shared_ptr< tcp_connectionshared_ptr
 
typedef boost::shared_ptr< tcp_connectionshared_ptr
 
typedef boost::shared_ptr< tcp_connectionshared_ptr
 

Public Member Functions

void AsyncRead (ba::mutable_buffers_1 buffers)
 
void AsyncWrite (ba::ip::tcp::socket *socket, const ba::const_buffers_1 &buffers)
 
void AsyncWait (ba::deadline_timer &timer, int seconds, void(tcp_connection::*handler)(const bs::error_code &))
 
 tcp_connection (ba::io_service &ioservice, int boardid)
 
void PostTrigger (uint32_t triggerid)
 
void HandleSentData (const boost::system::error_code &, size_t)
 
void SendData (uint32_t triggerid)
 
void TriggerSendData (const boost::system::error_code &ec)
 
void HandleReceivedData (const boost::system::error_code &error, size_t bytes_received)
 
void start ()
 
 ~tcp_connection ()
 
void handle_accept (boost::shared_ptr< ba::ip::tcp::socket > socket, int port, const boost::system::error_code &)
 
void start ()
 
void start ()
 

Static Public Member Functions

static shared_ptr create (ba::io_service &io_service, int boardid)
 
static shared_ptr create (ba::io_service &io_service)
 
static shared_ptr create (ba::io_service &io_service)
 

Public Attributes

const int fBoardId
 
double fStartTime
 
vector< uint16_t > fBufCommand
 
vector< uint16_t > fCommand
 
FAD::EventHeader fHeader
 
FAD::EventHeader fRam
 
FAD::ChannelHeader fChHeader [kNumChannels]
 
vector< uint16_t > fRamRoi
 
ba::deadline_timer fTriggerSendData
 
bool fTriggerEnabled
 
bool fCommandSocket
 
int fSocket
 
deque< vector< uint16_t > > fOutQueue
 
vector< boost::shared_ptr< ba::ip::tcp::socket > > fSockets
 

Static Public Attributes

static Trigger fTrigger
 

Private Member Functions

void AsyncWrite (const ba::const_buffers_1 &buffers)
 
void AsyncWait (ba::deadline_timer &timer, int seconds, void(tcp_connection::*handler)(const bs::error_code &))
 
 tcp_connection (ba::io_service &ioservice)
 
void HandleSentData (const boost::system::error_code &error, size_t bytes_transferred)
 
void SendData ()
 
void TriggerSendData (const boost::system::error_code &ec)
 
void AsyncRead (ba::mutable_buffers_1 buffers)
 
void AsyncWrite (const ba::const_buffers_1 &buffers)
 
void AsyncWait (ba::deadline_timer &timer, int seconds, void(tcp_connection::*handler)(const bs::error_code &))
 
 tcp_connection (ba::io_service &ioservice)
 
void HandleSentData (const boost::system::error_code &error, size_t bytes_transferred)
 
void SendDynamicData ()
 
void SendStaticData ()
 
void HandleReceivedData (const boost::system::error_code &error, size_t bytes_received)
 
void SendDynData (const boost::system::error_code &ec)
 
void TriggerSendData (const boost::system::error_code &ec)
 

Private Attributes

stringstream fBuffer
 
ba::deadline_timer fTriggerDynData
 
vector< uint16_t > fBufHeader
 
vector< uint16_t > fBufFtuList
 
vector< uint16_t > fBufStaticData
 
vector< uint16_t > fBufDynamicData
 
FTM::Header fHeader
 
FTM::FtuList fFtuList
 
FTM::StaticData fStaticData
 
FTM::DynamicData fDynamicData
 
uint16_t fDelimiter
 
uint16_t fBufRegister
 
uint16_t fCounter
 
uint16_t fTimeStamp
 
bool fReportsDisabled
 

Detailed Description

Definition at line 57 of file fad.cc.


The documentation for this class was generated from the following files: