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

Definition at line 770 of file fscctrl.cc.

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

Referenced by StateMachineFSC< T, S >::StateMachineFSC().

771  {
772  // Close all connections to supress the warning in SetEndpoint
773  fFSC.PostClose(false);
774 
775  // Now wait until all connection have been closed and
776  // all pending handlers have been processed
777  ba::io_service::poll();
778 
779  if (evt.GetBool())
780  fFSC.SetEndpoint(evt.GetString());
781 
782  // Now we can reopen the connection
783  fFSC.PostClose(true);
784 
785  return T::GetCurrentState();
786  }
std::string GetString() const
Definition: EventImp.cc:194
bool GetBool() const
Definition: EventImp.h:90

+ Here is the call graph for this function:

+ Here is the caller graph for this function: