TcpTextStreamBuffer Class Template Reference

Class encapsulating a streambuf which reads and writes across network boundaries. More...

Inherits basic_streambuf.

List of all members.

Public Member Functions

void clientInit (const std::string &hostname, const std::string &port)
 Initializes a socket connection to the given host on the given port.


Detailed Description

template<class Ch, class Tr = std::char_traits< Ch >>
class SmartNetwork::TcpTextStreamBuffer< Ch, Tr >

Class encapsulating a streambuf which reads and writes across network boundaries.

Class is used in combination with TcpTextStream to give a std::iostream to read and write data across network boundaries. Jørgen Hovland from no.it.programmering.c++ has helped me out alot with getting the socket parts of this class to work! Thank you Jørgen! :) Note class is for TEXT reading across network boundaries and CANNOT read BINARY data! If used as a wchar_t stream it will convert data using UTF-8 standard.

Back to SmartWin website
SourceForge.net Logo