Bytemaster's Boost Libraries
Public Types | Public Member Functions | Protected Member Functions
boost::cmt::asio::basic_socket_streambuf< Protocol, StreamSocketService > Class Template Reference

Iostream streambuf for a socket. More...

#include <basic_socket_streambuf.hpp>

List of all members.

Public Types

typedef Protocol::endpoint endpoint_type
 The endpoint type.

Public Member Functions

 basic_socket_streambuf ()
 Construct a basic_socket_streambuf without establishing a connection.
virtual ~basic_socket_streambuf ()
 Destructor flushes buffered data.
basic_socket_streambuf
< Protocol,
StreamSocketService > * 
connect (const endpoint_type &endpoint)
 Establish a connection.
 BOOST_PP_REPEAT_FROM_TO (1, BOOST_PP_INC(BOOST_ASIO_SOCKET_STREAMBUF_MAX_ARITY), BOOST_ASIO_PRIVATE_CONNECT_DEF, _) basic_socket_streambuf< Protocol
 Close the connection.
StreamSocketService * close ()

Protected Member Functions

int_type underflow ()
int_type overflow (int_type c)
int sync ()
std::streambuf * setbuf (char_type *s, std::streamsize n)

Detailed Description

template<typename Protocol, typename StreamSocketService = stream_socket_service<Protocol>>
class boost::cmt::asio::basic_socket_streambuf< Protocol, StreamSocketService >

Iostream streambuf for a socket.


Member Function Documentation

template<typename Protocol , typename StreamSocketService = stream_socket_service<Protocol>>
boost::cmt::asio::basic_socket_streambuf< Protocol, StreamSocketService >::BOOST_PP_REPEAT_FROM_TO ( ,
BOOST_PP_INC(BOOST_ASIO_SOCKET_STREAMBUF_MAX_ARITY)  ,
BOOST_ASIO_PRIVATE_CONNECT_DEF  ,
 
)

Close the connection.

Returns:
this if a connection was successfully established, a null pointer otherwise.
template<typename Protocol , typename StreamSocketService = stream_socket_service<Protocol>>
basic_socket_streambuf<Protocol, StreamSocketService>* boost::cmt::asio::basic_socket_streambuf< Protocol, StreamSocketService >::connect ( const endpoint_type endpoint) [inline]

Establish a connection.

This function establishes a connection to the specified endpoint.

Returns:
this if a connection was successfully established, a null pointer otherwise.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Defines