idfxx 1.0.0
Modern C++23 components for ESP-IDF
Loading...
Searching...
No Matches
endpoint.hpp File Reference

IPv4/IPv6 transport endpoint value type. More...

#include <idfxx/net>
#include <cstddef>
#include <cstdint>
#include <optional>
#include <span>
#include <string>
#include <string_view>
#include <utility>
#include <variant>
#include "sdkconfig.h"

Go to the source code of this file.

Classes

class  idfxx::net::endpoint
 Address/port pair identifying a transport endpoint. More...
 
struct  idfxx::net::datagram
 A datagram received together with the sender's endpoint. More...
 

Namespaces

namespace  idfxx
 
namespace  idfxx::net
 

Typedefs

using idfxx::net::port_number = uint16_t
 Port number type for transport endpoints.
 

Enumerations

enum class  idfxx::net::address_family : int {
  idfxx::net::ipv4 = 2 ,
  idfxx::net::ipv6 = 10
}
 Address family. More...
 
enum class  idfxx::net::ip_protocol : uint8_t {
  idfxx::net::icmp = 1 ,
  idfxx::net::igmp = 2 ,
  idfxx::net::tcp = 6 ,
  idfxx::net::udp = 17 ,
  idfxx::net::icmpv6 = 58 ,
  idfxx::net::udp_lite = 136
}
 IP-layer protocol number, per IANA assigned protocol numbers. More...
 
enum class  idfxx::net::direction : int {
  idfxx::net::receive ,
  idfxx::net::send
}
 One direction of a bidirectional transport. More...
 
enum class  idfxx::net::dscp : uint8_t {
  idfxx::net::default_ = 0 ,
  idfxx::net::cs1 = 8 ,
  idfxx::net::cs2 = 16 ,
  idfxx::net::cs3 = 24 ,
  idfxx::net::cs4 = 32 ,
  idfxx::net::cs5 = 40 ,
  idfxx::net::cs6 = 48 ,
  idfxx::net::cs7 = 56 ,
  idfxx::net::af11 = 10 ,
  idfxx::net::af12 = 12 ,
  idfxx::net::af13 = 14 ,
  idfxx::net::af21 = 18 ,
  idfxx::net::af22 = 20 ,
  idfxx::net::af23 = 22 ,
  idfxx::net::af31 = 26 ,
  idfxx::net::af32 = 28 ,
  idfxx::net::af33 = 30 ,
  idfxx::net::af41 = 34 ,
  idfxx::net::af42 = 36 ,
  idfxx::net::af43 = 38 ,
  idfxx::net::voice_admit = 44 ,
  idfxx::net::ef = 46
}
 Differentiated Services Code Point — the top 6 bits of the IPv4/IPv6 traffic-class byte, per RFC 2474 / RFC 4594. More...
 

Functions

std::string idfxx::to_string (const net::endpoint &ep)
 Returns the canonical string representation of an endpoint.
 

Detailed Description

IPv4/IPv6 transport endpoint value type.

Definition in file endpoint.hpp.