live
Public Member Functions | Private Member Functions | Private Attributes
NetAddress Class Reference

#include <NetAddress.hh>

Public Member Functions

 NetAddress (u_int8_t const *data, unsigned length=4)
 
 NetAddress (unsigned length=4)
 
 NetAddress (NetAddress const &orig)
 
NetAddressoperator= (NetAddress const &rightSide)
 
virtual ~NetAddress ()
 
unsigned length () const
 
u_int8_t const * data () const
 

Private Member Functions

void assign (u_int8_t const *data, unsigned length)
 
void clean ()
 

Private Attributes

unsigned fLength
 
u_int8_t * fData
 

Detailed Description

Definition at line 41 of file NetAddress.hh.

Constructor & Destructor Documentation

◆ NetAddress() [1/3]

NetAddress::NetAddress ( u_int8_t const *  data,
unsigned  length = 4 
)

◆ NetAddress() [2/3]

NetAddress::NetAddress ( unsigned  length = 4)

◆ NetAddress() [3/3]

NetAddress::NetAddress ( NetAddress const &  orig)

◆ ~NetAddress()

virtual NetAddress::~NetAddress ( )
virtual

Member Function Documentation

◆ assign()

void NetAddress::assign ( u_int8_t const *  data,
unsigned  length 
)
private

◆ clean()

void NetAddress::clean ( )
private

◆ data()

u_int8_t const * NetAddress::data ( ) const
inline

Definition at line 51 of file NetAddress.hh.

52 { return fData; }
u_int8_t * fData
Definition: NetAddress.hh:59

References fData.

◆ length()

unsigned NetAddress::length ( ) const
inline

Definition at line 50 of file NetAddress.hh.

50{ return fLength; }
unsigned fLength
Definition: NetAddress.hh:58

References fLength.

◆ operator=()

NetAddress & NetAddress::operator= ( NetAddress const &  rightSide)

Field Documentation

◆ fData

u_int8_t* NetAddress::fData
private

Definition at line 59 of file NetAddress.hh.

Referenced by data().

◆ fLength

unsigned NetAddress::fLength
private

Definition at line 58 of file NetAddress.hh.

Referenced by length().


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