FREEDM DGI
Namespaces | Typedefs | Functions
SynchronousTimeout.hpp File Reference
#include "CLogger.hpp"
#include <stdexcept>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/optional.hpp>
#include <boost/shared_ptr.hpp>

Go to the source code of this file.

Namespaces

 freedm
 General FREEDM Namespace.
 
 freedm::broker
 Broker Architecture Namespace.
 
 freedm::broker::device
 

Typedefs

typedef boost::optional< boost::system::error_code > freedm::broker::device::OptionalError
 Convenience typedef for the SetResult function. More...
 

Functions

void freedm::broker::device::SetResult (boost::shared_ptr< OptionalError > status, const boost::system::error_code &error)
 Callback function for the timed synchronous operations. More...
 
template<typename ReadStream , typename BufferSequence >
void freedm::broker::device::TimedRead (ReadStream &stream, const BufferSequence &buffer, unsigned int duration)
 
template<typename ReadStream , typename Allocator >
void freedm::broker::device::TimedReadUntil (ReadStream &stream, boost::asio::basic_streambuf< Allocator > &buffer, const std::string &delim, unsigned int duration)
 
template<typename WriteStream , typename BufferSequence >
void freedm::broker::device::TimedWrite (WriteStream &stream, const BufferSequence &buffer, unsigned int duration)
 
template<typename WriteStream , typename Allocator >
void freedm::broker::device::TimedWrite (WriteStream &stream, boost::asio::basic_streambuf< Allocator > &buffer, unsigned int duration)
 

Detailed Description

Author
Thomas Roth tprfh.nosp@m.7@ms.nosp@m.t.edu
Project:
FREEDM DGI
Description:
Synchronous i/o operations with timeouts.