Network/ENetPeer: Add GetPeerId()
This commit is contained in:
parent
b5797dfa12
commit
3ff483d2f6
|
|
@ -41,6 +41,7 @@ namespace Nz
|
|||
void DisconnectNow(UInt32 data);
|
||||
|
||||
inline const IpAddress& GetAddress() const;
|
||||
inline UInt16 GetPeerId() const;
|
||||
inline ENetPeerState GetState() const;
|
||||
|
||||
inline bool HasPendingCommands();
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
@ -13,6 +13,11 @@ namespace Nz
|
|||
return m_address;
|
||||
}
|
||||
|
||||
inline UInt16 ENetPeer::GetPeerId() const
|
||||
{
|
||||
return m_incomingPeerID;
|
||||
}
|
||||
|
||||
inline ENetPeerState ENetPeer::GetState() const
|
||||
{
|
||||
return m_state;
|
||||
|
|
|
|||
Loading…
Reference in New Issue