MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
mxnetwork::SocketAddress Struct Reference

#include <MXNetwork/include/mxnetwork/socket.hpp>

Public Member Functions

bool operator== (const SocketAddress &other) const
bool valid () const

Public Attributes

MXSocketAddress value {}

Detailed Description

Definition at line 12 of file socket.hpp.

Member Function Documentation

◆ operator==()

bool mxnetwork::SocketAddress::operator== ( const SocketAddress & other) const
nodiscard

Definition at line 9 of file socket.cpp.

9 {
10 return value.length == other.value.length && value.length > 0 &&
11 std::memcmp(&value.storage, &other.value.storage, static_cast<std::size_t>(value.length)) == 0;
12 }
MXSocketAddress value
Definition socket.hpp:13

◆ valid()

bool mxnetwork::SocketAddress::valid ( ) const
inlinenodiscard

Definition at line 14 of file socket.hpp.

14{ return value.length > 0; }

Member Data Documentation

◆ value

MXSocketAddress mxnetwork::SocketAddress::value {}

Definition at line 13 of file socket.hpp.

13{};

The documentation for this struct was generated from the following files: