![]() |
ToyGine2 26.2.0
Game Engine for retro consoles
|
Network types: endpoint, socket error, flags, statistics, type, and related APIs. More...
Classes | |
| class | Endpoint |
| Abstract base for a network endpoint (hostname and port). More... | |
| struct | SocketStatistics |
| Byte counters for socket traffic (sent and received). More... | |
Enumerations | |
| enum class | SocketError { None , InvalidOperation , IOError , InvalidAddress , AddressInUse , SocketInvalid , WouldBlock , Timeout , MemoryError , SystemError } |
| Error codes for socket and network operations. More... | |
| enum class | SocketFlags : uint8_t { None = 0x00 , NonBlocking = 0x01 , ReuseAddress = 0x02 , Broadcast = 0x04 , Listen = 0x08 , Bind = 0x10 } |
| Bitmask flags for socket options and operating mode. More... | |
| enum class | SocketType : uint8_t { Datagram , Stream , Dummy } |
| Kind of socket or socket-like endpoint. More... | |
Network types: endpoint, socket error, flags, statistics, type, and related APIs.
|
strong |
Error codes for socket and network operations.
Returned by socket APIs to indicate failure reason. Use for error handling and diagnostics.
|
strong |
Bitmask flags for socket options and operating mode.
Values can be combined (e.g. NonBlocking | ReuseAddress). Interpretation is platform-dependent; maps to socket options and flags such as O_NONBLOCK, SO_REUSEADDR.
|
strong |
Kind of socket or socket-like endpoint.
Used to distinguish datagram (UDP-style) vs stream (TCP-style) sockets. toy::network::SocketType::Dummy is for tests or stubs that do not perform real I/O.