Former-commit-id: 4962dac67b404140813e143a12d5577478d8a044
This commit is contained in:
Lynix
2015-11-12 22:08:50 +01:00
6 changed files with 67 additions and 6 deletions

View File

@@ -26,10 +26,14 @@ namespace Nz
inline bool Create(NetProtocol protocol);
void EnableBroadcasting(bool broadcasting);
inline IpAddress GetBoundAddress() const;
inline UInt16 GetBoundPort() const;
inline SocketState GetState() const;
inline bool IsBroadcastingEnabled() const;
unsigned int QueryMaxDatagramSize();
bool Receive(void* buffer, std::size_t size, IpAddress* from, std::size_t* received);
@@ -42,6 +46,7 @@ namespace Nz
IpAddress m_boundAddress;
SocketState m_state;
bool m_isBroadCastingEnabled;
};
}

View File

@@ -65,6 +65,11 @@ namespace Nz
{
return m_state;
}
inline bool UdpSocket::IsBroadcastingEnabled() const
{
return m_isBroadCastingEnabled;
}
}
#include <Nazara/Network/DebugOff.hpp>