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

Definition at line 428 of file gcn.cc.

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

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

429  {
430  // Close all connections to supress the warning in SetEndpoint
431  fGCN.PostClose(false);
432 
433  // Now wait until all connection have been closed and
434  // all pending handlers have been processed
435  ba::io_service::poll();
436 
437  if (evt.GetBool())
438  fGCN.SetEndpoint(evt.GetString());
439 
440  // Now we can reopen the connection
441  fGCN.PostClose(true);
442 
443  return T::GetCurrentState();
444  }
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: