19 #ifndef INCLUDE_RCF_ASIOFWD_HPP
20 #define INCLUDE_RCF_ASIOFWD_HPP
22 #include <RCF/Config.hpp>
24 #include <boost/shared_ptr.hpp>
26 #if defined(__CYGWIN__) && !defined(RCF_USE_BOOST_ASIO)
27 #error RCF_USE_BOOST_ASIO must be defined when building on Cygwin.
32 namespace posix_time {
37 #ifdef RCF_USE_BOOST_ASIO
42 #define ASIO_NS boost::asio
50 template<
typename T>
class basic_stream_handle;
52 class stream_handle_service;
53 typedef basic_stream_handle<stream_handle_service> stream_handle;
62 typedef boost::system::error_code AsioErrorCode;
80 template<
typename T>
class basic_stream_handle;
82 class stream_handle_service;
83 typedef basic_stream_handle<stream_handle_service> stream_handle;
88 typedef asio::error_code AsioErrorCode;
97 typedef ASIO_NS::io_service AsioIoService;
98 typedef boost::shared_ptr<AsioIoService> AsioIoServicePtr;
100 typedef ASIO_NS::windows::stream_handle AsioPipeHandle;
101 typedef boost::shared_ptr<AsioPipeHandle> AsioPipeHandlePtr;
104 typedef boost::shared_ptr<AsioTimer> AsioTimerPtr;
107 typedef boost::shared_ptr<AsioBuffers> AsioBuffersPtr;
111 #endif // ! INCLUDE_RCF_ASIOFWD_HPP