diff --git a/include/Nazara/Network/ENetHost.hpp b/include/Nazara/Network/ENetHost.hpp index edb9155ab..4941df353 100644 --- a/include/Nazara/Network/ENetHost.hpp +++ b/include/Nazara/Network/ENetHost.hpp @@ -61,6 +61,7 @@ namespace Nz void Flush(); + inline Nz::IpAddress GetBoundAddress() const; inline UInt32 GetServiceTime() const; int Service(ENetEvent* event, UInt32 timeout); diff --git a/include/Nazara/Network/ENetHost.inl b/include/Nazara/Network/ENetHost.inl index 9a70d9b78..3f35a8f39 100644 --- a/include/Nazara/Network/ENetHost.inl +++ b/include/Nazara/Network/ENetHost.inl @@ -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;