Network: First commit

Former-commit-id: ec8697acc51569f5043e4f70e4cf42f1c5dc487c
This commit is contained in:
Lynix
2015-11-09 15:02:25 +01:00
parent dfa6f06337
commit 1bbf038cc6
37 changed files with 3097 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
// Copyright (C) 2015 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
#include <Nazara/Network/Debug.hpp>
namespace Nz
{
inline SocketError AbstractSocket::GetLastError() const
{
return m_lastError;
}
inline SocketHandle AbstractSocket::GetNativeHandle() const
{
return m_handle;
}
inline SocketState AbstractSocket::GetState() const
{
return m_state;
}
inline SocketType AbstractSocket::GetType() const
{
return m_type;
}
inline bool AbstractSocket::IsBlockingEnabled() const
{
return m_isBlockingEnabled;
}
inline void AbstractSocket::ChangeState(SocketState newState)
{
if (m_state != newState)
{
SocketState oldState = m_state;
m_state = newState;
OnStateChange(this, oldState, m_state);
}
}
}
#include <Nazara/Network/DebugOff.hpp>