raw_istream enhancements.

This commit is contained in:
Peter Johnson
2018-05-13 19:08:26 -07:00
parent 31bb55c319
commit 2c27ad073a
4 changed files with 83 additions and 14 deletions

View File

@@ -20,10 +20,11 @@ void raw_socket_istream::read_impl(void* data, size_t len) {
size_t count = m_stream.receive(&cdata[pos], len - pos, &err, m_timeout);
if (count == 0) {
error_detected();
return;
break;
}
pos += count;
}
set_read_count(pos);
}
void raw_socket_istream::close() { m_stream.close(); }