|
R-Type
Distributed multiplayer game engine in C++
|
Represents a network event (connection, disconnection, or received data). More...
#include <IHost.hpp>

Public Attributes | |
| NetworkEventType | type = NetworkEventType::NONE |
| Type of the event. | |
| IPeer * | peer = nullptr |
| Peer associated with the event. | |
| std::unique_ptr< IPacket > | packet |
| Packet received (only for RECEIVE events). | |
| uint8_t | channelID = 0 |
| Channel on which the event occurred. | |
| uint32_t | data = 0 |
| Additional data (e.g., disconnect reason). | |
Represents a network event (connection, disconnection, or received data).
| uint8_t HostNetworkEvent::channelID = 0 |
Channel on which the event occurred.
Definition at line 36 of file IHost.hpp.
Referenced by ENetHostWrapper::service().
| uint32_t HostNetworkEvent::data = 0 |
| std::unique_ptr<IPacket> HostNetworkEvent::packet |
Packet received (only for RECEIVE events).
Definition at line 35 of file IHost.hpp.
Referenced by Server::_handleAutoMatchmaking(), Server::_handleChatMessage(), Server::_handleCreateRoom(), Server::_handleHandshakeRequest(), Server::_handleJoinRoom(), Server::_handleLoginRequest(), Server::_handlePlayerInput(), Server::_handleRegisterRequest(), Server::_handleUpdateAutoMatchmakingPref(), Server::handlePacket(), and ENetHostWrapper::service().
| IPeer* HostNetworkEvent::peer = nullptr |
Peer associated with the event.
Definition at line 34 of file IHost.hpp.
Referenced by Server::_handleAutoMatchmaking(), Server::_handleChatMessage(), Server::_handleCreateRoom(), Server::_handleDisconnect(), Server::_handleHandshakeRequest(), Server::_handleJoinRoom(), Server::_handleLeaveRoom(), Server::_handleLoginRequest(), Server::_handlePlayerInput(), Server::_handleRegisterRequest(), Server::_handleStartGame(), Server::_handleUpdateAutoMatchmakingPref(), Server::handlePacket(), and ENetHostWrapper::service().
| NetworkEventType HostNetworkEvent::type = NetworkEventType::NONE |
Type of the event.
Definition at line 33 of file IHost.hpp.
Referenced by Server::handlePacket(), and ENetHostWrapper::service().