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

Definition at line 1977 of file ftmctrl.cc.

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

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

1978  {
1979  // Close all connections to supress the warning in SetEndpoint
1980  fFTM.PostClose(false);
1981 
1982  // Now wait until all connection have been closed and
1983  // all pending handlers have been processed
1984  ba::io_service::poll();
1985 
1986  if (evt.GetBool())
1987  fFTM.SetEndpoint(evt.GetString());
1988 
1989  // Now we can reopen the connection
1990  fFTM.PostClose(true);
1991 
1992  return T::GetCurrentState();
1993  }
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: