Network: Get rid of now useless TcpBase

Former-commit-id: 5a682d6d58cc5e2b8bea19dbfc9acb1133b35337
This commit is contained in:
Lynix
2015-11-10 12:14:59 +01:00
parent 1bbf038cc6
commit 2a70758f08
9 changed files with 48 additions and 121 deletions

View File

@@ -9,17 +9,17 @@
#include <Nazara/Prerequesites.hpp>
#include <Nazara/Core/Signal.hpp>
#include <Nazara/Network/TcpBase.hpp>
#include <Nazara/Network/AbstractSocket.hpp>
#include <Nazara/Network/IpAddress.hpp>
namespace Nz
{
class NAZARA_NETWORK_API TcpClient : public TcpBase
class NAZARA_NETWORK_API TcpClient : public AbstractSocket
{
friend class TcpServer;
public:
TcpClient() = default;
inline TcpClient();
inline TcpClient(TcpClient&& tcpClient);
~TcpClient() = default;
@@ -33,6 +33,9 @@ namespace Nz
inline UInt64 GetKeepAliveTime() const;
inline IpAddress GetRemoteAddress() const;
inline bool IsLowDelayEnabled() const;
inline bool IsKeepAliveEnabled() const;
SocketState QueryState();
bool Receive(void* buffer, std::size_t size, std::size_t* received);
@@ -46,6 +49,10 @@ namespace Nz
void Reset(SocketHandle handle, const IpAddress& peerAddress);
IpAddress m_peerAddress;
UInt64 m_keepAliveInterval;
UInt64 m_keepAliveTime;
bool m_isLowDelayEnabled;
bool m_isKeepAliveEnabled;
};
}