35 template<
typename CharT,
typename Traits>
48 template<
typename CharT,
typename Traits>
50 (
const std::string& address,
int port )
60 template<
typename CharT,
typename Traits>
70 template<
typename CharT,
typename Traits>
81 template<
typename CharT,
typename Traits>
84 return m_buffer.is_open();
93 template<
typename CharT,
typename Traits>
95 (
const std::string& address,
int port )
97 if ( !m_buffer.open(address, port) )
98 this->setstate(std::ios_base::failbit);
109 template<
typename CharT,
typename Traits>
112 if ( !m_buffer.open(fd) )
113 this->setstate(std::ios_base::failbit);
122 template<
typename CharT,
typename Traits>
125 if ( !m_buffer.close() )
126 this->setstate(std::ios_base::failbit);
~basic_isocket_stream()
Destructor.
bool is_open() const
Tell if the stream is open.
buffer_type * rdbuf() const
Get the input buffer.
void close()
Close the connection.
void open(const std::string &address, int port)
Connect the socket to an address.
basic_isocket_stream()
Constructor.