8#ifndef RTYPE_NETWORK_INETWORK_HPP_
9 #define RTYPE_NETWORK_INETWORK_HPP_
62 virtual void stop(
void) = 0;
69 virtual std::optional<NetworkEvent>
pollEvent(
void) = 0;
Network packet implementation for R-Type protocol.
Interface for network operations.
virtual ~INetwork()=default
Virtual destructor.
virtual void start(void)=0
Start the network on the specified port.
virtual void stop(void)=0
Stop the network.
virtual std::optional< NetworkEvent > pollEvent(void)=0
Poll for a network event.
Network packet with header and serializable body.
File : IEventPublisher.hpp License: MIT Author : Elias Josué HAJJAR LLAUQUEN elias-josue....
NetworkMode
Enum representing network transmission modes.
Represents a network event containing session ID and packet data.