3#include <StormByte/network/endpoint.hxx>
51 Endpoint(deserialize_packet_function, logger),
52 m_connection(
nullptr) {}
90 bool Connect(const
Connection::Protocol& protocol, const std::
string& address, const
unsigned short& port) override;
95 void Disconnect() noexcept override;
Abstract base class for application-specific clients.
Definition client.hxx:41
virtual ~Client() noexcept
Virtual destructor (abstract).
Client(const DeserializePacketFunction &deserialize_packet_function, std::shared_ptr< Logger::Log > logger) noexcept
Constructs a Client instance.
Definition client.hxx:50
Client(const Client &other)=delete
Copy constructor (deleted).
Client(Client &&other) noexcept=default
Move constructor.
Abstract base for network endpoints (clients/servers).
Definition endpoint.hxx:26
The namespace containing connection items.
Network-related classes used by the StormByte networking subsystem.
std::function< PacketPointer(Transport::Packet::OpcodeType, Buffer::Consumer, std::shared_ptr< Logger::Log >)> DeserializePacketFunction
The deserialize packet function type.
Definition typedefs.hxx:43
std::shared_ptr< Transport::Packet > PacketPointer
The packet pointer type.
Definition typedefs.hxx:38
Application-layer transport types: packets, frames and serialization.