StormByte C++ Library: Network module 0.0.9999
StormByte-Network is a StormByte library module for handling and create network connections
|
Contains all the network-related classes and utilities. More...
Namespaces | |
namespace | Socket |
The packet class (forward declaration). | |
Classes | |
class | Client |
The class representing a client. More... | |
class | ConnectionClosed |
The class representing a terminated connection. More... | |
class | ConnectionError |
The class representing an error in the connection. More... | |
class | EndPoint |
Represents a network endpoint, serving as a base class for both clients and servers. More... | |
class | Exception |
The class representing an exception in the network module. More... | |
class | Packet |
The class representing a packet. Explicitelly instantiate this class to get packets identified by their opcode The buffer should contain the opcode and the data. More... | |
class | PacketError |
The class representing an error in the packet. More... | |
class | Server |
A server class. More... | |
Typedefs | |
using | FutureBuffer = std::future< Buffer::Simple > |
The future data type. | |
using | PromisedBuffer = std::promise< Buffer::Simple > |
The promised data type. | |
using | ExpectedBuffer = StormByte::Expected< Buffer::Simple, ConnectionError > |
The expected buffer type. | |
using | ExpectedFutureBuffer = StormByte::Expected< FutureBuffer, ConnectionError > |
The expected future type. | |
using | ExpectedVoid = StormByte::Expected< void, ConnectionError > |
The expected void type. | |
using | ExpectedClient = StormByte::Expected< Socket::Client, ConnectionError > |
The expected client type. | |
using | ExpectedReadResult = StormByte::Expected< Connection::Read::Result, ConnectionClosed > |
The expected read result type. | |
using | ExpectedHandlerType = StormByte::Expected< Connection::Handler::Type, ConnectionError > |
The expected handler type. | |
using | FutureBufferProcessor = std::function< StormByte::Expected< FutureBuffer, ConnectionError >(Socket::Client &, FutureBuffer &)> |
The future data function type. | |
using | SharedConsumerBuffer = std::shared_ptr< Buffer::Consumer > |
The shared consumer buffer type. | |
using | SharedProducerBuffer = std::shared_ptr< Buffer::Producer > |
The shared producer buffer type. | |
using | ExpectedPacket = StormByte::Expected< std::shared_ptr< Packet >, PacketError > |
The expected packet type. | |
using | PacketInstanceFunction = std::function< std::shared_ptr< Packet >(const unsigned short &)> |
The packet instance function type. | |
using | PacketReaderFunction = std::function< ExpectedBuffer(const size_t &)> |
The packet reader function type. | |
Contains all the network-related classes and utilities.