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

Definition at line 256 of file temperature.cc.

References HandleRequest().

257  {
258  string cmd = "GET " + fSite;
259 
260  if (!fNextCommand.empty())
261  cmd += "?" + fNextCommand;
262 
263  cmd += " HTTP/1.1\r\n";
264  cmd += "\r\n";
265 
266  PostMessage(cmd);
267 
268  fNextCommand = "";
269 
270  fKeepAlive.expires_from_now(boost::posix_time::seconds(fInterval));
271  fKeepAlive.async_wait(boost::bind(&ConnectionPowerSwitch::HandleRequest,
272  this, dummy::error));
273  }
void PostMessage(const void *msg, size_t s=0)
void HandleRequest(const bs::error_code &error)
Definition: temperature.cc:179
boost::asio::deadline_timer fKeepAlive
Definition: temperature.cc:177

+ Here is the call graph for this function: