Jazz2::Multiplayer::INetworkHandler class

Interface to handle network requests on a server.

Public functions

auto GetServerName() const -> StringView pure virtual
Returns the server name.
void SetServerName(StringView value) pure virtual
Sets the server name.
auto OnPeerConnected(const Peer& peer, std::uint32_t clientData) -> ConnectionResult pure virtual
Called when a peer connects to the server.
void OnPeerDisconnected(const Peer& peer, Reason reason) pure virtual
Called when a peer disconnects from the server.
void OnPacketReceived(const Peer& peer, std::uint8_t channelId, std::uint8_t* data, std::size_t dataLength) pure virtual
Called when a packet is received.