Network/TcpClient: Make TcpClient a Stream
Former-commit-id: 2176748166ae84b609d5a336495e6ff3550a765d
This commit is contained in:
@@ -55,7 +55,7 @@ namespace Nz
|
||||
Stream& operator=(Stream&&) = default;
|
||||
|
||||
protected:
|
||||
inline Stream(UInt32 openMode);
|
||||
inline Stream(UInt32 streamOptions = StreamOption_None, UInt32 openMode = OpenMode_NotOpen);
|
||||
|
||||
virtual void FlushStream() = 0;
|
||||
virtual std::size_t ReadBlock(void* buffer, std::size_t size) = 0;
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
inline Stream::Stream(UInt32 openMode) :
|
||||
inline Stream::Stream(UInt32 streamOptions, UInt32 openMode) :
|
||||
m_openMode(openMode),
|
||||
m_streamOptions(0)
|
||||
m_streamOptions(streamOptions)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user