|
StormByte C++ Library: Network module 1.1.0
StormByte-Network is the C++26 networking module of the StormByte suite.
|
#include <StormByte/buffer/fifo.hxx>#include <StormByte/expected.hxx>#include <StormByte/logger/log.hxx>#include <StormByte/network/connection/protocol.hxx>#include <StormByte/network/connection/rw.hxx>#include <StormByte/network/connection/status.hxx>#include <StormByte/network/exception.hxx>#include <StormByte/network/transport/packet.hxx>#include <winsock2.h>#include <functional>#include <memory>

Go to the source code of this file.
Namespaces | |
| namespace | StormByte |
| namespace | StormByte::Network |
| Network module of the StormByte suite. | |
| namespace | StormByte::Network::Socket |
| namespace | StormByte::Network::Connection |
| Connection types of the Network module. | |
Typedefs | |
| using | StormByte::Network::Connection::HandlerType = int |
| Native socket handle (POSIX) | |
| using | StormByte::Network::ExpectedBuffer = StormByte::Expected< Buffer::FIFO, ConnectionError > |
| Receive buffer result. | |
| using | StormByte::Network::ExpectedVoid = StormByte::Expected< void, ConnectionError > |
| Void operation result. | |
| using | StormByte::Network::ExpectedClient = StormByte::Expected< std::shared_ptr< Socket::Client >, ConnectionError > |
| Accept result. | |
| using | StormByte::Network::ExpectedReadResult = StormByte::Expected< Connection::Read::Result, ConnectionClosed > |
| Wait-for-data result. | |
| using | StormByte::Network::PacketPointer = std::shared_ptr< Transport::Packet > |
| Shared packet. | |
| using | StormByte::Network::DeserializePacketFunction = std::function< PacketPointer(Transport::Packet::OpcodeType, Buffer::Consumer, std::shared_ptr< Logger::Log >)> |
| Callback that builds a Packet from opcode + payload consumer. | |