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

Definition at line 245 of file pfminictrl.cc.

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

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

246  {
247  // Close all connections to supress the warning in SetEndpoint
248  fPFmini.PostClose(false);
249 
250  // Now wait until all connection have been closed and
251  // all pending handlers have been processed
252  ba::io_service::poll();
253 
254  if (evt.GetBool())
255  fPFmini.SetEndpoint(evt.GetString());
256 
257  // Now we can reopen the connection
258  fPFmini.PostClose(true);
259 
260  return T::GetCurrentState();
261  }
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: