StormByte C++ Library: Network module 1.1.0
StormByte-Network is the C++26 networking module of the StormByte suite.
Loading...
Searching...
No Matches
Namespaces | Classes | Typedefs
StormByte::Network Namespace Reference

Network module of the StormByte suite. More...

Namespaces

namespace  Connection
 Connection types of the Network module.
 
namespace  Detail
 
namespace  Socket
 
namespace  Transport
 Transport types of the Network module.
 

Classes

class  Client
 Abstract application client. More...
 
class  ConnectionClosed
 Peer closed while waiting or transferring. More...
 
class  ConnectionError
 Connection or socket operation failed. More...
 
class  Endpoint
 Shared base for Client and Server. More...
 
class  Exception
 Base exception for the Network module. More...
 
class  FrameError
 Transport frame error. More...
 
class  PacketError
 Transport packet error. More...
 
class  Server
 Abstract application server. More...
 

Typedefs

using ExpectedBuffer = StormByte::Expected< Buffer::FIFO, ConnectionError >
 Receive buffer result.
 
using ExpectedVoid = StormByte::Expected< void, ConnectionError >
 Void operation result.
 
using ExpectedClient = StormByte::Expected< std::shared_ptr< Socket::Client >, ConnectionError >
 Accept result.
 
using ExpectedReadResult = StormByte::Expected< Connection::Read::Result, ConnectionClosed >
 Wait-for-data result.
 
using PacketPointer = std::shared_ptr< Transport::Packet >
 Shared packet.
 
using DeserializePacketFunction = std::function< PacketPointer(Transport::Packet::OpcodeType, Buffer::Consumer, std::shared_ptr< Logger::Log >)>
 Callback that builds a Packet from opcode + payload consumer.
 

Detailed Description

Network module of the StormByte suite.

Typedef Documentation

◆ DeserializePacketFunction

using StormByte::Network::DeserializePacketFunction = typedef std::function<PacketPointer( Transport::Packet::OpcodeType, Buffer::Consumer, std::shared_ptr<Logger::Log> )>

Callback that builds a Packet from opcode + payload consumer.

◆ ExpectedBuffer

using StormByte::Network::ExpectedBuffer = typedef StormByte::Expected<Buffer::FIFO, ConnectionError>

Receive buffer result.

◆ ExpectedClient

using StormByte::Network::ExpectedClient = typedef StormByte::Expected<std::shared_ptr<Socket::Client>, ConnectionError>

Accept result.

◆ ExpectedReadResult

Wait-for-data result.

◆ ExpectedVoid

using StormByte::Network::ExpectedVoid = typedef StormByte::Expected<void, ConnectionError>

Void operation result.

◆ PacketPointer

using StormByte::Network::PacketPointer = typedef std::shared_ptr<Transport::Packet>

Shared packet.