A class to use any socket as a classic standard output stream. More...
#include <osocket_stream.hpp>
Public Types | |
typedef CharT | char_type |
The type of the characters in the stream. | |
typedef Traits | traits_type |
The traits carry some informations about the char_type. | |
typedef traits_type::int_type | int_type |
The type used to represent integers. | |
typedef traits_type::pos_type | pos_type |
The type used to represent a position in the stream. | |
typedef traits_type::off_type | off_type |
The type used to represent a delta in the positions. | |
typedef basic_socketbuf< char_type, traits_type > | buffer_type |
The type of the buffer manipulated by this stream. | |
Public Member Functions | |
basic_osocket_stream (const std::string &address, int port) | |
buffer_type * | rdbuf () const |
bool | is_open () const |
void | open (const std::string &address, int port) |
void | open (int fd) |
void | close () |
A class to use any socket as a classic standard output stream.
Definition at line 46 of file osocket_stream.hpp.
typedef basic_socketbuf<char_type, traits_type> claw::net::basic_osocket_stream< CharT, Traits >::buffer_type |
The type of the buffer manipulated by this stream.
Definition at line 65 of file osocket_stream.hpp.
typedef CharT claw::net::basic_osocket_stream< CharT, Traits >::char_type |
The type of the characters in the stream.
Definition at line 50 of file osocket_stream.hpp.
typedef traits_type::int_type claw::net::basic_osocket_stream< CharT, Traits >::int_type |
The type used to represent integers.
Definition at line 56 of file osocket_stream.hpp.
typedef traits_type::off_type claw::net::basic_osocket_stream< CharT, Traits >::off_type |
The type used to represent a delta in the positions.
Definition at line 62 of file osocket_stream.hpp.
typedef traits_type::pos_type claw::net::basic_osocket_stream< CharT, Traits >::pos_type |
The type used to represent a position in the stream.
Definition at line 59 of file osocket_stream.hpp.
typedef Traits claw::net::basic_osocket_stream< CharT, Traits >::traits_type |
The traits carry some informations about the char_type.
Definition at line 53 of file osocket_stream.hpp.