cubos::core::net namespace

Networking module.

Classes

class Address
Represents an address, either IPv4 or IPv6.
class TcpListener
A TCP socket server, listening for connections.
class TcpStream
Stream implementation which writes to/reads from a TCP connection.
class UdpSocket
Represents a UDP socket.

Typedefs

using InnerSocket = decltype(socket(0, 0, 0))
Socket type. Differs from Windows (SOCKET) and POSIX (int).

Functions

auto logSystemError() -> std::string
Cross-platform utility to get last networking error message.

Variables

InnerSocket InnerInvalidSocket constexpr
Represents an invalid socket.

Typedef documentation

using cubos::core::net::InnerSocket = decltype(socket(0, 0, 0))

Socket type. Differs from Windows (SOCKET) and POSIX (int).

Function documentation

std::string cubos::core::net::logSystemError()

Cross-platform utility to get last networking error message.

Returns Message.

Variable documentation

InnerSocket cubos::core::net::InnerInvalidSocket constexpr

Represents an invalid socket.