// Copyright (c) 2005-2007 Andre Merzky (andre@merzky.net) // Copyright (c) 2005-2009 Hartmut Kaiser // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef ADAPTORS_DEFAULT_STREAM_ADAPTOR_HPP #define ADAPTORS_DEFAULT_STREAM_ADAPTOR_HPP #include /////////////////////////////////////////////////////////////////////////////// namespace stream { /////////////////////////////////////////////////////////////////////////// struct saga_default_stream_adaptor : public saga::adaptor { typedef saga::impl::v1_0::op_info op_info; typedef saga::impl::v1_0::cpi_info cpi_info; typedef saga::impl::v1_0::preference_type preference_type; /** * This functions registers the adaptor with the factory * * @param factory the factory where the adaptor registers * its maker function and description table */ saga::impl::adaptor_selector::adaptor_info_list_type adaptor_register (saga::impl::session *s); std::string get_name (void) const { return BOOST_PP_STRINGIZE(SAGA_ADAPTOR_NAME); } boost::asio::io_service io_service_; }; } // namespace stream /////////////////////////////////////////////////////////////////////////////// #if !defined(SAGA_DEFAULT_STREAM_DEFAULT_PORT) #define SAGA_DEFAULT_STREAM_DEFAULT_PORT 12345 #endif #endif // ADAPTORS_DEFAULT_STREAM_ADAPTOR_HPP