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

Definition at line 1873 of file biasctrl.cc.

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

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

1874  {
1875  // Close all connections to supress the warning in SetEndpoint
1876  fBias.PostClose(-1);
1877 
1878  // Now wait until all connection have been closed and
1879  // all pending handlers have been processed
1880  ba::io_service::poll();
1881 
1882  if (evt.GetBool())
1883  fBias.SetEndpoint(evt.GetString());
1884 
1885  // Now we can reopen the connection
1886  fBias.SetReconnectDelay();
1887  fBias.PostClose(0);
1888 
1889  return T::GetCurrentState();
1890  }
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: