FACT++  1.0
void tcp_connection::SendStaticData ( )
inlineprivate

Definition at line 191 of file ftm.cc.

References buffer, FTM::StaticData::fActiveFTU, FTM::FtuList::fActiveFTU, FTM::Header::fDataSize, FTM::Header::fTimeStamp, FTM::Header::fTriggerCounter, FTM::Header::fType, FTM::Header::HtoN(), FTM::StaticData::HtoN(), i, FTM::kStaticData, and StaticData().

192  {
193  fHeader.fType=kStaticData; // FtuList
194  fHeader.fDataSize=sizeof(FTM::StaticData)/2+1;
195  fHeader.fTriggerCounter = fCounter;
196  fHeader.fTimeStamp = fTimeStamp*1000000;//lrint(Time().UnixTime());
197 
198  for (int i=0; i<4; i++)
200 
201  fBufHeader = fHeader.HtoN();
203 
204  AsyncWrite(ba::buffer(ba::const_buffer(&fBufHeader[0], fBufHeader.size()*2)));
205  AsyncWrite(ba::buffer(ba::const_buffer(&fBufStaticData[0], fBufStaticData.size()*2)));
206  AsyncWrite(ba::buffer(ba::const_buffer(&fDelimiter, 2)));
207  }
std::vector< uint16_t > HtoN() const
Definition: HeadersFTM.h:249
uint16_t fTimeStamp
Definition: ftm.cc:155
int i
Definition: db_dim_client.c:21
uint16_t fActiveFTU[4]
Definition: HeadersFTM.h:238
Static (configuration) data.
Definition: HeadersFTM.h:89
FTM::StaticData fStaticData
Definition: ftm.cc:146
uint16_t fDelimiter
Definition: ftm.cc:151
vector< uint16_t > fBufHeader
Definition: ftm.cc:138
int buffer[BUFFSIZE]
Definition: db_dim_client.c:14
void AsyncWrite(ba::ip::tcp::socket *socket, const ba::const_buffers_1 &buffers)
Definition: fad.cc:73
uint16_t fCounter
Definition: ftm.cc:154
StaticData()
Definition: HeadersFTM.h:245
FAD::EventHeader fHeader
Definition: fad.cc:117
uint16_t fActiveFTU[4]
Num of board responded in crate 0-3.
Definition: HeadersFTM.h:638
FTM::FtuList fFtuList
Definition: ftm.cc:145
vector< uint16_t > fBufStaticData
Definition: ftm.cc:140

+ Here is the call graph for this function: