FACT++  1.0
template<class T , class S >
int StateMachineDrive< T, S >::Reconnect ( const EventImp evt)
inlineprivate

Definition at line 2320 of file drivectrl.cc.

References EventImp::GetBool(), and EventImp::GetString().

2321  {
2322  // Close all connections to supress the warning in SetEndpoint
2323  fDrive.PostClose(false);
2324 
2325  // Now wait until all connection have been closed and
2326  // all pending handlers have been processed
2327  ba::io_service::poll();
2328 
2329  if (evt.GetBool())
2330  fDrive.SetEndpoint(evt.GetString());
2331 
2332  // Now we can reopen the connection
2333  fDrive.PostClose(true);
2334 
2335  return T::GetCurrentState();
2336  }
std::string GetString() const
Definition: EventImp.cc:194
bool GetBool() const
Definition: EventImp.h:90

+ Here is the call graph for this function: