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
Creates the SocketIOS with the given socket.
Destroys the SocketIOS.
Flushes the buffer, but does not close the socket.
Flushes the stream and closes the socket.
SocketStreamBuf * rdbuf();
Returns a pointer to the internal SocketStreamBuf.
StreamSocket socket() const;
Returns the underlying socket.