Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::net::Address Class Referenceabstract

Address class. More...

#include <Address.h>

Inheritance diagram for sese::net::Address:
sese::net::IPAddress sese::net::IPv4Address sese::net::IPv6Address

Public Types

using Ptr = std::shared_ptr<Address>
 

Public Member Functions

virtual ~Address ()=default
 
virtual sockaddr * getRawAddress () const noexcept=0
 
virtual socklen_t getRawAddressLength () const noexcept=0
 
virtual std::string getAddress () const noexcept=0
 

Static Public Member Functions

static Ptr create (const sockaddr *address, socklen_t address_len)
 
static bool lookUp (std::vector< Address::Ptr > &result, const std::string &host, int family=AF_INET, int type=0, int protocol=0)
 
static Address::Ptr lookUpAny (const std::string &host, int family=AF_INET, int type=0, int protocol=0)
 

Detailed Description

Address class.

Member Typedef Documentation

◆ Ptr

using sese::net::Address::Ptr = std::shared_ptr<Address>

Constructor & Destructor Documentation

◆ ~Address()

virtual sese::net::Address::~Address ( )
virtualdefault

Member Function Documentation

◆ create()

Address::Ptr Address::create ( const sockaddr * address,
socklen_t address_len )
static

◆ getAddress()

virtual std::string sese::net::Address::getAddress ( ) const
nodiscardpure virtualnoexcept

◆ getRawAddress()

◆ getRawAddressLength()

virtual socklen_t sese::net::Address::getRawAddressLength ( ) const
nodiscardpure virtualnoexcept

◆ lookUp()

bool Address::lookUp ( std::vector< Address::Ptr > & result,
const std::string & host,
int family = AF_INET,
int type = 0,
int protocol = 0 )
static

References create().

Referenced by lookUpAny().

◆ lookUpAny()

Address::Ptr Address::lookUpAny ( const std::string & host,
int family = AF_INET,
int type = 0,
int protocol = 0 )
static

References lookUp().


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