#include "asio/detail/push_options.hpp"
#include <streambuf>
#include <boost/array.hpp>
#include <boost/preprocessor/arithmetic/inc.hpp>
#include <boost/preprocessor/repetition/enum_binary_params.hpp>
#include <boost/preprocessor/repetition/enum_params.hpp>
#include <boost/preprocessor/repetition/repeat_from_to.hpp>
#include <boost/utility/base_from_member.hpp>
#include "asio/detail/pop_options.hpp"
#include "asio/basic_socket.hpp"
#include "asio/io_service.hpp"
#include "asio/stream_socket_service.hpp"
#include "asio/detail/throw_error.hpp"
Go to the source code of this file.
Classes | |
class | asio::basic_socket_streambuf< Protocol, StreamSocketService > |
Iostream streambuf for a socket. More... | |
Namespaces | |
namespace | asio |
Defines | |
#define | ASIO_PRIVATE_CONNECT_DEF(z, n, data) |
#define | ASIO_SOCKET_STREAMBUF_MAX_ARITY 5 |
#define ASIO_PRIVATE_CONNECT_DEF | ( | z, | |
n, | |||
data | |||
) |
template <BOOST_PP_ENUM_PARAMS(n, typename T)> \ basic_socket_streambuf<Protocol, StreamSocketService>* connect( \ BOOST_PP_ENUM_BINARY_PARAMS(n, T, x)) \ { \ init_buffers(); \ asio::error_code ec; \ this->basic_socket<Protocol, StreamSocketService>::close(ec); \ typedef typename Protocol::resolver_query resolver_query; \ resolver_query query(BOOST_PP_ENUM_PARAMS(n, x)); \ resolve_and_connect(query, ec); \ return !ec ? this : 0; \ } \
Definition at line 54 of file basic_socket_streambuf.hpp.
#define ASIO_SOCKET_STREAMBUF_MAX_ARITY 5 |
Definition at line 36 of file basic_socket_streambuf.hpp.