MIRA
Namespaces | Functions
SyncTimedRead.h File Reference

Methods for synchronously reading data using boost asio with timeout. More...

#include <boost/asio/deadline_timer.hpp>
#include <boost/optional.hpp>
#include <utils/Bind.h>
#include <utils/Time.h>
#include <error/Exceptions.h>
Include dependency graph for SyncTimedRead.h:

Go to the source code of this file.

Namespaces

 boost
 
 boost::asio
 

Functions

template<typename SyncReadStream , typename MutableBufferSequence >
std::size_t read_some (SyncReadStream &s, const MutableBufferSequence &buffers, mira::Duration timeout)
 Read some data from the specified stream 's' into the given buffer 'buffers'. More...
 
template<typename SyncReadStream , typename MutableBufferSequence >
std::size_t read_some (SyncReadStream &s, const MutableBufferSequence &buffers, mira::Duration timeout, system::error_code &ec)
 Read some data from the specified stream 's' into the given buffer 'buffers'. More...
 

Detailed Description

Methods for synchronously reading data using boost asio with timeout.

Author
Tim Langner
Date
2011/06/29