core/net/utils.hpp file

Network utilities.

Namespaces

namespace cubos
Cubos libraries namespace.
namespace cubos::core
Core namespace.
namespace cubos::core::net
Networking module.

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.