Convenience class for SocketServer TextStream definitions. More...
#include <socket_streams.hpp>
Public Member Functions | |
SocketServerStream () | |
Default constructor, underlying device must be manually opened. | |
SocketServerStream (const unsigned int &port_number) throw (StandardException) | |
Convenience constructor for output file text streams. | |
virtual | ~SocketServerStream () |
Convenience class for SocketServer TextStream definitions.
This class provides a convenient handle for both writing and opening TextStream<SocketServer> objects. It has no further functionality.
Definition at line 90 of file socket_streams.hpp.
ecl::SocketServerStream::SocketServerStream | ( | ) | [inline] |
Default constructor, underlying device must be manually opened.
This must open the device manually via device().open() as you would do if using a TextStream.
Definition at line 98 of file socket_streams.hpp.
ecl::SocketServerStream::SocketServerStream | ( | const unsigned int & | port_number | ) | throw (StandardException) [inline] |
Convenience constructor for output file text streams.
This constructor enables RAII style construction of the underlying device (this makes it distinct from a generic TextStream<OFile> object).
port_number | : port number of the connection. |
StandardException | : throws if the connection failed to open. |
Definition at line 110 of file socket_streams.hpp.
virtual ecl::SocketServerStream::~SocketServerStream | ( | ) | [inline, virtual] |
Definition at line 118 of file socket_streams.hpp.