FACT++  1.0
void ConnectionInterlock::Request ( )
inline

Definition at line 239 of file pwrctrl.cc.

References HandleRequest().

240  {
241  string cmd = "GET " + fSite;
242 
243  if (!fNextCommand.empty())
244  cmd += "?" + fNextCommand;
245 
246  cmd += " HTTP/1.1\r\n";
247  cmd += "\r\n";
248 
249  PostMessage(cmd);
250 
251  fNextCommand = "";
252 
253  fKeepAlive.expires_from_now(boost::posix_time::seconds(fInterval));
254  fKeepAlive.async_wait(boost::bind(&ConnectionInterlock::HandleRequest,
255  this, dummy::error));
256  }
void HandleRequest(const bs::error_code &error)
Definition: pwrctrl.cc:163
string fNextCommand
Definition: pwrctrl.cc:43
uint16_t fInterval
Definition: pwrctrl.cc:33
boost::asio::deadline_timer fKeepAlive
Definition: pwrctrl.cc:161

+ Here is the call graph for this function: