Network/ENetHost: Add AllowsIncomingConnections method
This commit is contained in:
@@ -44,6 +44,8 @@ namespace Nz
|
||||
ENetHost(ENetHost&&) = default;
|
||||
inline ~ENetHost();
|
||||
|
||||
inline void AllowsIncomingConnections(bool allow = true);
|
||||
|
||||
void Broadcast(UInt8 channelId, ENetPacketFlags flags, NetPacket&& packet);
|
||||
|
||||
bool CheckEvents(ENetEvent* event);
|
||||
@@ -56,6 +58,8 @@ namespace Nz
|
||||
bool Create(const IpAddress& listenAddress, std::size_t peerCount, std::size_t channelCount, UInt32 incomingBandwidth, UInt32 outgoingBandwidth);
|
||||
inline void Destroy();
|
||||
|
||||
inline bool DoesAllowIncomingConnections() const;
|
||||
|
||||
void Flush();
|
||||
|
||||
inline IpAddress GetBoundAddress() const;
|
||||
|
||||
Reference in New Issue
Block a user