FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
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
}
Connection::PostMessage
void PostMessage(const void *msg, size_t s=0)
ConnectionPowerSwitch::fSite
string fSite
Definition:
temperature.cc:44
ConnectionPowerSwitch::HandleRequest
void HandleRequest(const bs::error_code &error)
Definition:
temperature.cc:179
ConnectionPowerSwitch::fInterval
uint16_t fInterval
Definition:
temperature.cc:39
ConnectionPowerSwitch::fNextCommand
string fNextCommand
Definition:
temperature.cc:49
ConnectionPowerSwitch::fKeepAlive
boost::asio::deadline_timer fKeepAlive
Definition:
temperature.cc:177
Here is the call graph for this function:
ConnectionPowerSwitch
Generated on Sun Sep 18 2016 20:50:45 for FACT++ by
1.8.11