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

@@ -7,9 +7,18 @@
namespace Nz
{
inline TcpClient::TcpClient() :
AbstractSocket(SocketType_TCP)
{
}
inline TcpClient::TcpClient(TcpClient&& tcpClient) :
TcpBase(std::move(tcpClient)),
m_peerAddress(std::move(tcpClient.m_peerAddress))
AbstractSocket(std::move(tcpClient)),
m_peerAddress(std::move(tcpClient.m_peerAddress)),
m_keepAliveInterval(tcpClient.m_keepAliveInterval),
m_keepAliveTime(tcpClient.m_keepAliveTime),
m_isLowDelayEnabled(tcpClient.m_isLowDelayEnabled),
m_isKeepAliveEnabled(tcpClient.m_isKeepAliveEnabled)
{
}
@@ -32,6 +41,16 @@ namespace Nz
{
return m_peerAddress;
}
inline bool TcpClient::IsLowDelayEnabled() const
{
return m_isLowDelayEnabled;
}
inline bool TcpClient::IsKeepAliveEnabled() const
{
return m_isKeepAliveEnabled;
}
}
#include <Nazara/Network/DebugOff.hpp>