ACE 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Protected Attributes | List of all members
ACE_Addr Class Reference

Defines the base class for the "address family independent" address format. More...

#include <Addr.h>

Inheritance diagram for ACE_Addr:
Inheritance graph
[legend]
Collaboration diagram for ACE_Addr:
Collaboration graph
[legend]

Public Member Functions

 ACE_Addr (int type=-1, int size=-1)
 Initializes instance variables.
 
virtual ~ACE_Addr ()=default
 Destructor.
 
int get_size () const
 Return the size of the address.
 
void set_size (int size)
 Sets the size of the address.
 
int get_type () const
 Get the type of the address.
 
void set_type (int type)
 Set the type of the address.
 
virtual voidget_addr () const
 Return a pointer to the address.
 
virtual void set_addr (const void *, int len)
 Set a pointer to the address.
 
bool operator== (const ACE_Addr &sap) const
 Check for address equality.
 
bool operator!= (const ACE_Addr &sap) const
 Check for address inequality.
 
void base_set (int type, int size)
 Initializes instance variables.
 
virtual unsigned long hash () const
 
void dump () const
 Dump the state of an object.
 

Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.
 

Static Public Attributes

static const ACE_Addr sap_any
 Wild-card address.
 

Protected Attributes

int addr_type_
 e.g., AF_UNIX, AF_INET, AF_SPIPE, etc.
 
int addr_size_
 Number of bytes in the address.
 

Detailed Description

Defines the base class for the "address family independent" address format.

Constructor & Destructor Documentation

◆ ACE_Addr()

ACE_Addr::ACE_Addr ( int type = -1,
int size = -1 )

Initializes instance variables.

◆ ~ACE_Addr()

virtual ACE_Addr::~ACE_Addr ( )
virtualdefault

Destructor.

Member Function Documentation

◆ base_set()

void ACE_Addr::base_set ( int type,
int size )

Initializes instance variables.

◆ dump()

void ACE_Addr::dump ( ) const

Dump the state of an object.

◆ get_addr()

void * ACE_Addr::get_addr ( ) const
virtual

Return a pointer to the address.

Reimplemented in ACE_ATM_Addr, ACE_DEV_Addr, ACE_FILE_Addr, ACE_INET_Addr, ACE_MEM_Addr, ACE_SPIPE_Addr, and ACE_UNIX_Addr.

◆ get_size()

int ACE_Addr::get_size ( ) const
inline

Return the size of the address.

◆ get_type()

int ACE_Addr::get_type ( ) const
inline

Get the type of the address.

Return the type of the address.

◆ hash()

unsigned long ACE_Addr::hash ( ) const
inlinevirtual

Returns a hash value. This should be overwritten by a subclass that can produce a better hash value.

Reimplemented in ACE_INET_Addr, ACE_MEM_Addr, and ACE_UNIX_Addr.

◆ operator!=()

bool ACE_Addr::operator!= ( const ACE_Addr & sap) const
inline

Check for address inequality.

◆ operator==()

bool ACE_Addr::operator== ( const ACE_Addr & sap) const
inline

Check for address equality.

◆ set_addr()

void ACE_Addr::set_addr ( const void * ,
int len )
virtual

Set a pointer to the address.

Reimplemented in ACE_INET_Addr, ACE_MEM_Addr, ACE_ATM_Addr, ACE_SPIPE_Addr, and ACE_UNIX_Addr.

◆ set_size()

void ACE_Addr::set_size ( int size)
inline

Sets the size of the address.

◆ set_type()

void ACE_Addr::set_type ( int type)
inline

Set the type of the address.

Member Data Documentation

◆ ACE_ALLOC_HOOK_DECLARE

ACE_Addr::ACE_ALLOC_HOOK_DECLARE

Declare the dynamic allocation hooks.

◆ addr_size_

int ACE_Addr::addr_size_
protected

Number of bytes in the address.

◆ addr_type_

int ACE_Addr::addr_type_
protected

e.g., AF_UNIX, AF_INET, AF_SPIPE, etc.

◆ sap_any

const ACE_Addr ACE_Addr::sap_any
static

Wild-card address.


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