ACE
6.4.2
|
Defines the base class for the "address family independent" address format. More...
#include <Addr.h>
Public Member Functions | |
ACE_Addr (int type=-1, int size=-1) | |
Initializes instance variables. More... | |
virtual | ~ACE_Addr (void) |
Destructor. More... | |
int | get_size (void) const |
Return the size of the address. More... | |
void | set_size (int size) |
Sets the size of the address. More... | |
int | get_type (void) const |
Get the type of the address. More... | |
void | set_type (int type) |
Set the type of the address. More... | |
virtual void * | get_addr (void) const |
Return a pointer to the address. More... | |
virtual void | set_addr (const void *, int len) |
Set a pointer to the address. More... | |
bool | operator== (const ACE_Addr &sap) const |
Check for address equality. More... | |
bool | operator!= (const ACE_Addr &sap) const |
Check for address inequality. More... | |
void | base_set (int type, int size) |
Initializes instance variables. More... | |
virtual unsigned long | hash (void) const |
void | dump (void) const |
Dump the state of an object. More... | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. More... | |
Static Public Attributes | |
static const ACE_Addr | sap_any |
Wild-card address. More... | |
Protected Attributes | |
int | addr_type_ |
e.g., AF_UNIX, AF_INET, AF_SPIPE, etc. More... | |
int | addr_size_ |
Number of bytes in the address. More... | |
Defines the base class for the "address family independent" address format.
ACE_Addr::ACE_Addr | ( | int | type = -1 , |
int | size = -1 |
||
) |
Initializes instance variables.
|
virtual |
Destructor.
void ACE_Addr::base_set | ( | int | type, |
int | size | ||
) |
Initializes instance variables.
void ACE_Addr::dump | ( | void | ) | const |
Dump the state of an object.
|
virtual |
Return a pointer to the address.
Reimplemented in ACE_INET_Addr, ACE_ATM_Addr, ACE_MEM_Addr, ACE_UNIX_Addr, ACE_FILE_Addr, ACE_SPIPE_Addr, and ACE_DEV_Addr.
|
inline |
Return the size of the address.
|
inline |
Get the type of the address.
Return the type of the address.
|
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.
|
inline |
Check for address inequality.
|
inline |
Check for address equality.
|
virtual |
Set a pointer to the address.
Reimplemented in ACE_INET_Addr, ACE_ATM_Addr, ACE_MEM_Addr, ACE_UNIX_Addr, and ACE_SPIPE_Addr.
|
inline |
Sets the size of the address.
|
inline |
Set the type of the address.
ACE_Addr::ACE_ALLOC_HOOK_DECLARE |
Declare the dynamic allocation hooks.
|
protected |
Number of bytes in the address.
|
protected |
e.g., AF_UNIX, AF_INET, AF_SPIPE, etc.
|
static |
Wild-card address.