FACT++  1.0
void tcp_connection::SendDynData ( const boost::system::error_code &  ec)
inlineprivate

Definition at line 423 of file ftm.cc.

Referenced by start().

424  {
425  if (!is_open())
426  {
427  // For example: Here we could schedule a new accept if we
428  // would not want to allow two connections at the same time.
429  return;
430  }
431 
432  if (ec==ba::error::basic_errors::operation_aborted)
433  return;
434 
435  // Check whether the deadline has passed. We compare the deadline
436  // against the current time since a new asynchronous operation
437  // may have moved the deadline before this actor had a chance
438  // to run.
439 
440  if (fTriggerDynData.expires_at() > ba::deadline_timer::traits_type::now())
441  return;
442 
443  // The deadline has passed.
444  SendDynamicData();
445 
447  }
void AsyncWait(ba::deadline_timer &timer, int seconds, void(tcp_connection::*handler)(const bs::error_code &))
Definition: fad.cc:79
void SendDynamicData()
Definition: ftm.cc:161
ba::deadline_timer fTriggerDynData
Definition: ftm.cc:60
void SendDynData(const boost::system::error_code &ec)
Definition: ftm.cc:423

+ Here is the caller graph for this function: