VMime
|
Public Member Functions | |
inputStreamSocketAdapter (net::socket &sok) | |
bool | eof () const |
void | reset () |
size_t | read (byte_t *const data, const size_t count) |
size_t | skip (const size_t count) |
size_t | getBlockSize () |
Public Member Functions inherited from stream | |
virtual | ~stream () |
Additional Inherited Members | |
Protected Member Functions inherited from object | |
object () | |
object (const object &) | |
object & | operator= (const object &) |
virtual | ~object () |
An input stream that is connected to a socket.
inputStreamSocketAdapter | ( | net::socket & | sok | ) |
|
virtual |
Test for end of stream (no more data to read).
Implements inputStream.
|
virtual |
Return the preferred maximum block size when reading from or writing to this stream.
Reimplemented from stream.
References socket::getBlockSize().
Read data from the stream.
data | will receive the data read |
count | maximum number of bytes to read |
Implements inputStream.
|
virtual |
Set the read pointer to the beginning of the stream.
Implements inputStream.
Skip a number of bytes.
count | maximum number of bytes to ignore |
Implements inputStream.