FACT++  1.0
void ConnectionPFmini::Request ( )
inlineprivate

Definition at line 134 of file pfminictrl.cc.

References buffer, Connection::HandleReadTimeout(), and HandleRequest().

135  {
136  fReceived = false;
137 
138  string cmd = "GET / HTTP/1.1\r\n\r\n";
139  PostMessage(cmd);
140 
141  fBuffer.resize(6);
142  AsyncRead(ba::buffer(fBuffer));
143  AsyncWait(fInTimeout, 3000, &Connection::HandleReadTimeout);
144 
145  fKeepAlive.expires_from_now(boost::posix_time::seconds(fInterval));
146  fKeepAlive.async_wait(boost::bind(&ConnectionPFmini::HandleRequest,
147  this, dummy::error));
148  }
uint16_t fInterval
Definition: pfminictrl.cc:30
void HandleRequest(const bs::error_code &error)
Definition: pfminictrl.cc:93
boost::asio::deadline_timer fKeepAlive
Definition: pfminictrl.cc:91
vector< int16_t > fBuffer
Definition: pfminictrl.cc:36
int buffer[BUFFSIZE]
Definition: db_dim_client.c:14
virtual void HandleReadTimeout(const boost::system::error_code &)
Definition: Connection.h:138

+ Here is the call graph for this function: