3#include <StormByte/buffer/consumer.hxx>
4#include <StormByte/buffer/producer.hxx>
5#include <StormByte/buffer/simple.hxx>
6#include <StormByte/expected.hxx>
7#include <StormByte/network/connection/protocol.hxx>
8#include <StormByte/network/connection/rw.hxx>
9#include <StormByte/network/connection/status.hxx>
10#include <StormByte/network/exception.hxx>
The class representing a client.
Definition client.hxx:15
The class representing an error in the packet.
Definition exception.hxx:51
The namespace containing connection items.
Contains all the network-related classes and utilities.
Definition client.hxx:10
StormByte::Expected< std::shared_ptr< Packet >, PacketError > ExpectedPacket
The expected packet type.
Definition typedefs.hxx:38
std::function< ExpectedBuffer(const size_t &)> PacketReaderFunction
The packet reader function type.
Definition typedefs.hxx:40
StormByte::Expected< Buffer::Simple, ConnectionError > ExpectedBuffer
The expected buffer type.
Definition typedefs.hxx:30
StormByte::Expected< Socket::Client, ConnectionError > ExpectedClient
The expected client type.
Definition typedefs.hxx:33
std::future< Buffer::Simple > FutureBuffer
The future data type.
Definition typedefs.hxx:28
std::function< StormByte::Expected< FutureBuffer, ConnectionError >(Socket::Client &, FutureBuffer &)> FutureBufferProcessor
The future data function type.
Definition typedefs.hxx:35
std::shared_ptr< Buffer::Producer > SharedProducerBuffer
The shared producer buffer type.
Definition typedefs.hxx:37
std::promise< Buffer::Simple > PromisedBuffer
The promised data type.
Definition typedefs.hxx:29
StormByte::Expected< Connection::Read::Result, ConnectionClosed > ExpectedReadResult
The expected read result type. ///< The expected handler type.
Definition typedefs.hxx:34
StormByte::Expected< FutureBuffer, ConnectionError > ExpectedFutureBuffer
The expected future type.
Definition typedefs.hxx:31
std::shared_ptr< Buffer::Consumer > SharedConsumerBuffer
The shared consumer buffer type.
Definition typedefs.hxx:36
std::function< std::shared_ptr< Packet >(const unsigned short &)> PacketInstanceFunction
The packet instance function type.
Definition typedefs.hxx:39
StormByte::Expected< void, ConnectionError > ExpectedVoid
The expected void type.
Definition typedefs.hxx:32