Library: Net
Package: Sockets
Header: Poco/Net/SocketStream.h
The base class for SocketStream, SocketInputStream and SocketOutputStream.
This class is needed to ensure the correct initialization order of the stream buffer and base classes.
Direct Base Classes: std::ios
All Base Classes: std::ios
Known Derived Classes: SocketInputStream, SocketOutputStream, SocketStream
Member Functions: close, rdbuf, socket
SocketIOS(
const Socket & socket
);
Creates the SocketIOS with the given socket.
The socket's SocketImpl must be a StreamSocketImpl, otherwise an InvalidArgumentException is thrown.
~SocketIOS();
Destroys the SocketIOS.
Flushes the buffer, but does not close the socket.
void close();
Flushes the stream and closes the socket.
SocketStreamBuf * rdbuf();
Returns a pointer to the internal SocketStreamBuf.
StreamSocket socket() const;
Returns the underlying socket.
SocketStreamBuf _buf;