Network/ENetHost: Add GetBoundAddress()
This commit is contained in:
@@ -61,6 +61,7 @@ namespace Nz
|
|||||||
|
|
||||||
void Flush();
|
void Flush();
|
||||||
|
|
||||||
|
inline Nz::IpAddress GetBoundAddress() const;
|
||||||
inline UInt32 GetServiceTime() const;
|
inline UInt32 GetServiceTime() const;
|
||||||
|
|
||||||
int Service(ENetEvent* event, UInt32 timeout);
|
int Service(ENetEvent* event, UInt32 timeout);
|
||||||
|
|||||||
@@ -52,6 +52,11 @@ namespace Nz
|
|||||||
m_socket.Close();
|
m_socket.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline Nz::IpAddress ENetHost::GetBoundAddress() const
|
||||||
|
{
|
||||||
|
return m_address;
|
||||||
|
}
|
||||||
|
|
||||||
inline UInt32 Nz::ENetHost::GetServiceTime() const
|
inline UInt32 Nz::ENetHost::GetServiceTime() const
|
||||||
{
|
{
|
||||||
return m_serviceTime;
|
return m_serviceTime;
|
||||||
|
|||||||
Reference in New Issue
Block a user