An input stream for reading from a socket.
When using formatted input from a SocketInputStream, always ensure that a receive timeout is set for the socket. Otherwise your program might unexpectedly hang.
However, using formatted input from a SocketInputStream is not recommended, due to the read-ahead behavior of istream with formatted reads.
Direct Base Classes: SocketIOS, std::istream
All Base Classes: SocketIOS, std::ios, std::istream
Creates the SocketInputStream with the given socket.
Destroys the SocketInputStream.