FACT++  1.0
void ConnectionSQM::StartReadReport ( )
inlineprivate

Definition at line 204 of file sqmctrl.cc.

References HandleRead(), and HandleReadTimeout().

205  {
206  PostMessage(string("rx\n"), 3);
207 
208  // Do not schedule two reads
209  if (!fFirstMessage)
210  {
211  async_read_until(*this, fBuffer, '\n',
212  boost::bind(&ConnectionSQM::HandleRead, this,
213  dummy::error, dummy::bytes_transferred));
214  }
215 
216  fInTimeout.expires_from_now(boost::posix_time::milliseconds(fTimeout*1.5));
217  fInTimeout.async_wait(boost::bind(&ConnectionSQM::HandleReadTimeout,
218  this, dummy::error));
219  }
void HandleReadTimeout(const bs::error_code &error)
Definition: sqmctrl.cc:128
boost::asio::streambuf fBuffer
Definition: sqmctrl.cc:36
uint16_t fTimeout
Definition: sqmctrl.cc:34
bool fFirstMessage
Definition: sqmctrl.cc:32
void HandleRead(const boost::system::error_code &err, size_t bytes_received)
Definition: sqmctrl.cc:40

+ Here is the call graph for this function: