Network/ENetHost: Add GetBoundAddress()

This commit is contained in:
Jérôme Leclercq 2017-02-21 15:58:02 +01:00
parent c1cbc8c617
commit 218d9f3974
2 changed files with 6 additions and 0 deletions

View File

@ -61,6 +61,7 @@ namespace Nz
void Flush();
inline Nz::IpAddress GetBoundAddress() const;
inline UInt32 GetServiceTime() const;
int Service(ENetEvent* event, UInt32 timeout);

View File

@ -52,6 +52,11 @@ namespace Nz
m_socket.Close();
}
inline Nz::IpAddress ENetHost::GetBoundAddress() const
{
return m_address;
}
inline UInt32 Nz::ENetHost::GetServiceTime() const
{
return m_serviceTime;