Newtork/AbstractSocket: Allow to specify receive and send buffer size per socket

This commit is contained in:
DrLynix
2017-01-20 14:33:05 +01:00
parent 18862fd1ba
commit 85f0208690
6 changed files with 222 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
// Copyright (C) 2017 Jérôme Leclercq
// Copyright (C) 2017 Jérôme Leclercq
// This file is part of the "Nazara Engine - Network module"
// For conditions of distribution and use, see copyright notice in Config.hpp
@@ -34,6 +34,11 @@ namespace Nz
inline bool IsBlockingEnabled() const;
std::size_t QueryAvailableBytes() const;
std::size_t QueryReceiveBufferSize() const;
std::size_t QuerySendBufferSize() const;
void SetReceiveBufferSize(std::size_t size);
void SetSendBufferSize(std::size_t size);
AbstractSocket& operator=(const AbstractSocket&) = delete;
AbstractSocket& operator=(AbstractSocket&& abstractSocket);