C++ Actor Framework 0.18
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
caf::ipv6_endpoint Class Reference

An IP endpoint that contains an ::ipv6_address and a port. More...

#include <ipv6_endpoint.hpp>

Inheritance diagram for caf::ipv6_endpoint:
caf::detail::comparable< ipv6_endpoint > caf::detail::comparable< ipv6_endpoint, ipv4_endpoint >

Public Member Functions

 ipv6_endpoint (ipv6_address address, uint16_t port)
 
 ipv6_endpoint (ipv4_address address, uint16_t port)
 
 ipv6_endpoint (const ipv6_endpoint &)=default
 
ipv6_endpointoperator= (const ipv6_endpoint &)=default
 
ipv6_address address () const noexcept
 Returns the IPv6 address.
 
void address (ipv6_address x) noexcept
 Sets the address of this endpoint.
 
uint16_t port () const noexcept
 Returns the port of this endpoint.
 
void port (uint16_t x) noexcept
 Sets the port of this endpoint.
 
size_t hash_code () const noexcept
 Returns a hash for this object.
 
long compare (ipv6_endpoint x) const noexcept
 Compares this endpoint to x.
 
long compare (ipv4_endpoint x) const noexcept
 Compares this endpoint to x.
 

Friends

template<class Inspector >
bool inspect (Inspector &f, ipv6_endpoint &x)
 

Detailed Description

An IP endpoint that contains an ::ipv6_address and a port.

Member Function Documentation

◆ compare() [1/2]

long caf::ipv6_endpoint::compare ( ipv4_endpoint  x) const
noexcept

Compares this endpoint to x.

Returns
0 if *this == x, a positive value if *this > x and a negative value otherwise.

◆ compare() [2/2]

long caf::ipv6_endpoint::compare ( ipv6_endpoint  x) const
noexcept

Compares this endpoint to x.

Returns
0 if *this == x, a positive value if *this > x and a negative value otherwise.

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