FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
void ConnectionFAD::StartAsyncRead
(
)
inline
Definition at line
151
of file
dclient5.cc
.
References
buffer
, and
Connection::HandleReadTimeout()
.
152
{
153
// Start also a dealine_time for a proper timeout
154
// Therefore we must know how often we expect messages
155
// FIXME: Add deadline_counter
156
157
memset(
fReadBuffer
, 0, 100);
158
159
// AsyncRead + Deadline
160
AsyncRead
(
ba::buffer
(
fReadBuffer
, 2)
/*,
161
&Connection::HandleReceivedData*/
);
162
AsyncWait
(
fInTimeout
, 5000, &
Connection::HandleReadTimeout
);
163
}
Connection::AsyncWait
void AsyncWait(boost::asio::deadline_timer &timer, int millisec, void(Connection::*handler)(const boost::system::error_code &))
Definition:
Connection.h:75
Connection::fInTimeout
boost::asio::deadline_timer fInTimeout
Definition:
Connection.h:36
Connection::AsyncRead
void AsyncRead(const boost::asio::mutable_buffers_1 buffers, int type=0)
Definition:
Connection.cc:31
buffer
int buffer[BUFFSIZE]
Definition:
db_dim_client.c:14
ConnectionFAD::fReadBuffer
char fReadBuffer[1000]
Definition:
dclient5.cc:42
Connection::HandleReadTimeout
virtual void HandleReadTimeout(const boost::system::error_code &)
Definition:
Connection.h:138
Here is the call graph for this function:
ConnectionFAD
Generated on Sun Sep 18 2016 20:50:45 for FACT++ by
1.8.11