EMANE  1.2.1
EMANE::INETAddr Class Reference

#include <inetaddr.h>

Public Member Functions

 INETAddr ()
 
 INETAddr (const std::string &sEndPoint)
 
 INETAddr (const std::string &sAddr, std::uint16_t u16Port)
 
 INETAddr (const sockaddr_in &sockaddr)
 
 INETAddr (const sockaddr_in6 &sockaddr)
 
 INETAddr (const INETAddr &address)
 
 INETAddr (INETAddr &&address)
 
 ~INETAddr ()
 
INETAddroperator= (const INETAddr &address)
 
INETAddroperator= (INETAddr &&address)
 
void set (const std::string &sAddress, std::uint16_t u16Port)
 
void set (const std::string &sEndPoint)
 
bool isIPv6 () const
 
bool isIPv4 () const
 
bool isAny () const
 
bool isMulticast () const
 
int getFamily () const
 
sockaddr * getSockAddr () const
 
socklen_t getAddrLength () const
 
std::string str (bool bWithPort=true) const
 
std::uint16_t getPort () const
 

Detailed Description

Definition at line 43 of file inetaddr.h.

Constructor & Destructor Documentation

◆ INETAddr() [1/7]

EMANE::INETAddr::INETAddr ( )

Definition at line 334 of file inetaddr.cc.

◆ INETAddr() [2/7]

EMANE::INETAddr::INETAddr ( const std::string &  sEndPoint)

Definition at line 337 of file inetaddr.cc.

◆ INETAddr() [3/7]

EMANE::INETAddr::INETAddr ( const std::string &  sAddr,
std::uint16_t  u16Port 
)

Definition at line 340 of file inetaddr.cc.

◆ INETAddr() [4/7]

EMANE::INETAddr::INETAddr ( const sockaddr_in &  sockaddr)

Definition at line 328 of file inetaddr.cc.

◆ INETAddr() [5/7]

EMANE::INETAddr::INETAddr ( const sockaddr_in6 &  sockaddr)

Definition at line 331 of file inetaddr.cc.

◆ INETAddr() [6/7]

EMANE::INETAddr::INETAddr ( const INETAddr address)

Creates an INETAddr instance by copying another instance

Definition at line 344 of file inetaddr.cc.

◆ INETAddr() [7/7]

EMANE::INETAddr::INETAddr ( INETAddr &&  address)

Creates an INETAddr instance by moving another instance

Definition at line 355 of file inetaddr.cc.

◆ ~INETAddr()

EMANE::INETAddr::~INETAddr ( )

Definition at line 366 of file inetaddr.cc.

Member Function Documentation

◆ getAddrLength()

socklen_t EMANE::INETAddr::getAddrLength ( ) const

Definition at line 404 of file inetaddr.cc.

◆ getFamily()

int EMANE::INETAddr::getFamily ( ) const

Definition at line 394 of file inetaddr.cc.

◆ getPort()

std::uint16_t EMANE::INETAddr::getPort ( ) const

Definition at line 414 of file inetaddr.cc.

◆ getSockAddr()

sockaddr * EMANE::INETAddr::getSockAddr ( ) const

Definition at line 399 of file inetaddr.cc.

◆ isAny()

bool EMANE::INETAddr::isAny ( ) const

Definition at line 389 of file inetaddr.cc.

◆ isIPv4()

bool EMANE::INETAddr::isIPv4 ( ) const

Definition at line 384 of file inetaddr.cc.

◆ isIPv6()

bool EMANE::INETAddr::isIPv6 ( ) const

Definition at line 379 of file inetaddr.cc.

◆ isMulticast()

bool EMANE::INETAddr::isMulticast ( ) const

◆ operator=() [1/2]

EMANE::INETAddr & EMANE::INETAddr::operator= ( const INETAddr address)

Sets an INETAddr instance to a copy of another instance

Definition at line 349 of file inetaddr.cc.

◆ operator=() [2/2]

EMANE::INETAddr & EMANE::INETAddr::operator= ( INETAddr &&  address)

Sets and INETAddr instance by moving another instance

Definition at line 360 of file inetaddr.cc.

◆ set() [1/2]

void EMANE::INETAddr::set ( const std::string &  sAddress,
std::uint16_t  u16Port 
)

Definition at line 368 of file inetaddr.cc.

◆ set() [2/2]

void EMANE::INETAddr::set ( const std::string &  sEndPoint)

Definition at line 374 of file inetaddr.cc.

◆ str()

std::string EMANE::INETAddr::str ( bool  bWithPort = true) const

Definition at line 409 of file inetaddr.cc.


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