|
Bytemaster's Boost Libraries
|
Iostream streambuf for a socket. More...
#include <basic_socket_streambuf.hpp>
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) |
Iostream streambuf for a socket.
| boost::cmt::asio::basic_socket_streambuf< Protocol, StreamSocketService >::BOOST_PP_REPEAT_FROM_TO | ( | 1 | , |
| BOOST_PP_INC(BOOST_ASIO_SOCKET_STREAMBUF_MAX_ARITY) | , | ||
| BOOST_ASIO_PRIVATE_CONNECT_DEF | , | ||
| _ | |||
| ) |
Close the connection.
this if a connection was successfully established, a null pointer otherwise. | 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.
this if a connection was successfully established, a null pointer otherwise.