LIBWIRE
Next-generation C++17 networking library.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Namespaces | Variables
address.hpp File Reference

This file defines universal address structure for both IPv4 and IPv6 network addresses. More...

#include <cstdint>
#include <array>
#include <string_view>
#include <string>
#include <libwire/protocols.hpp>
#include <libwire/memory_view.hpp>

Go to the source code of this file.

Classes

struct  libwire::address
 IPv4/IPv6 address structure. More...
 
struct  std::hash< libwire::address >
 Hash implementation for address. More...
 

Namespaces

 libwire
 Library namespace, everything in library placed here.
 
 libwire::ipv4
 Namespace with few IPv4 address constants.
 
 libwire::ipv6
 Namespace with few IPv6 address constants.
 

Variables

address libwire::ipv4::any = {0, 0, 0, 0}
 
address libwire::ipv6::any = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}
 
address libwire::ipv4::broadcast = {255, 255, 255, 255}
 
address libwire::ipv6::broadcast
 
address libwire::ipv4::loopback = {127, 0, 0, 1}
 
address libwire::ipv6::loopback = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1}
 

Detailed Description

This file defines universal address structure for both IPv4 and IPv6 network addresses.

Definition in file address.hpp.