Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
net::raw_address_t Struct Reference

An IP address as the bytes the network carries it in. More...

#include <src/network_link.h>

Public Member Functions

std::size_t size () const
 Bytes that carry the address: 4 for IPv4, 16 for IPv6.

Public Attributes

bool v6 {false}
 IPv6 when set, IPv4 otherwise.
std::array< std::uint8_t, 16 > bytes {}
 Network byte order; IPv4 uses the first four.
std::uint32_t scope {0}
 IPv6 scope (interface index), 0 when it has none.

Detailed Description

An IP address as the bytes the network carries it in.

Definition at line 28 of file network_link.h.

Member Function Documentation

◆ size()

std::size_t net::raw_address_t::size ( ) const
inline

Bytes that carry the address: 4 for IPv4, 16 for IPv6.

Definition at line 34 of file network_link.h.

Member Data Documentation

◆ bytes

std::array<std::uint8_t, 16> net::raw_address_t::bytes {}

Network byte order; IPv4 uses the first four.

Definition at line 30 of file network_link.h.

◆ scope

std::uint32_t net::raw_address_t::scope {0}

IPv6 scope (interface index), 0 when it has none.

Definition at line 31 of file network_link.h.

◆ v6

bool net::raw_address_t::v6 {false}

IPv6 when set, IPv4 otherwise.

Definition at line 29 of file network_link.h.


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