ACE 8.0.1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | List of all members
ACE_ATM_Addr Class Reference

Defines the ATM domain address family address format. More...

#include <ATM_Addr.h>

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

Public Member Functions

 ACE_ATM_Addr (u_char selector=DEFAULT_SELECTOR)
 Default constructor.
 
 ACE_ATM_Addr (const ACE_ATM_Addr &, u_char selector=DEFAULT_SELECTOR)
 Copy constructor.
 
 ACE_ATM_Addr (const ATM_Addr *, u_char selector=DEFAULT_SELECTOR)
 
 ACE_ATM_Addr (const ACE_TCHAR sap[], u_char selector=DEFAULT_SELECTOR)
 
 ~ACE_ATM_Addr ()=default
 Default dtor.
 
void init (u_char selector=DEFAULT_SELECTOR)
 
int set (const ACE_ATM_Addr &, u_char selector=DEFAULT_SELECTOR)
 Initializes from another ACE_ATM_Addr.
 
int set (const ATM_Addr *, u_char selector=DEFAULT_SELECTOR)
 
int set (const ACE_TCHAR sap[], u_char selector=DEFAULT_SELECTOR)
 
virtual int string_to_addr (const ACE_TCHAR sap[])
 
virtual int addr_to_string (ACE_TCHAR addr[], size_t addrlen) const
 
const ACE_TCHARaddr_to_string () const
 
virtual voidget_addr () const
 Return a pointer to the underlying network address.
 
virtual void set_addr (const void *, int)
 Set a pointer to the address.
 
u_char get_selector () const
 Return the selector for network address.
 
void set_selector (u_char selector)
 Set the selector for the network address.
 
bool operator== (const ACE_ATM_Addr &SAP) const
 
bool operator!= (const ACE_ATM_Addr &SAP) const
 Compare two addresses for inequality.
 
void dump () const
 Dump the state of an object.
 
- Public Member Functions inherited from ACE_Addr
 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.
 
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.
 
- Public Attributes inherited from ACE_Addr
 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.
 

Static Public Attributes

static const long LINE_RATE = 0L
 
static const int OPT_FLAGS_CPID = 0
 
static const int OPT_FLAGS_PMP = 0
 
static const int DEFAULT_SELECTOR = 0x0
 
- Static Public Attributes inherited from ACE_Addr
static const ACE_Addr sap_any
 Wild-card address.
 

Private Attributes

ATM_Addr atm_addr_
 

Additional Inherited Members

- Protected Attributes inherited from ACE_Addr
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 ATM domain address family address format.

Constructor & Destructor Documentation

◆ ACE_ATM_Addr() [1/4]

ACE_ATM_Addr::ACE_ATM_Addr ( u_char selector = DEFAULT_SELECTOR)

Default constructor.

◆ ACE_ATM_Addr() [2/4]

ACE_ATM_Addr::ACE_ATM_Addr ( const ACE_ATM_Addr & sap,
u_char selector = DEFAULT_SELECTOR )

Copy constructor.

◆ ACE_ATM_Addr() [3/4]

ACE_ATM_Addr::ACE_ATM_Addr ( const ATM_Addr * sap,
u_char selector = DEFAULT_SELECTOR )

Creates an ACE_ATM_Addr from an ATMSAPAddress structure. This is vendor specific (FORE systems). May need to change when other vendors are supported.

◆ ACE_ATM_Addr() [4/4]

ACE_ATM_Addr::ACE_ATM_Addr ( const ACE_TCHAR sap[],
u_char selector = DEFAULT_SELECTOR )

Initializes an ACE_ATM_Addr from the <sap> which can be "atm-address" (e.g., "47.0005.80.ffe100.0000.f20f.2200.0020480694f9.00") or "hostname" (e.g., "frisbee.cs.wustl.edu").

◆ ~ACE_ATM_Addr()

ACE_ATM_Addr::~ACE_ATM_Addr ( )
default

Default dtor.

Member Function Documentation

◆ addr_to_string() [1/2]

const ACE_TCHAR * ACE_ATM_Addr::addr_to_string ( ) const

Return the character representation of the ATM address (e.g., "47.0005.80.ffe100.0000.f20f.2200.0020480694f9.00"). Returns -1 if the <size> of the <buffer> is too small, else 0.(This version is non-reentrant since it returns a pointer to a static data area.)

◆ addr_to_string() [2/2]

int ACE_ATM_Addr::addr_to_string ( ACE_TCHAR addr[],
size_t addrlen ) const
virtual

Return the character representation of the ATM address (e.g., "47.0005.80.ffe100.0000.f20f.2200.0020480694f9.00") storing it in the addr (which is assumed to be <addrlen> bytes long). This version is reentrant. Returns -1 if the <addrlen> of the addr is too small, else 0.

◆ dump()

void ACE_ATM_Addr::dump ( ) const

Dump the state of an object.

◆ get_addr()

void * ACE_ATM_Addr::get_addr ( ) const
virtual

Return a pointer to the underlying network address.

Reimplemented from ACE_Addr.

◆ get_selector()

u_char ACE_ATM_Addr::get_selector ( ) const
inline

Return the selector for network address.

◆ init()

void ACE_ATM_Addr::init ( u_char selector = DEFAULT_SELECTOR)

Default initialization for non-address values (e.g., t_atm_sap_addr.SVE_tag_addr, t_atm_sap_addr.SVE_tag_selector)

◆ operator!=()

bool ACE_ATM_Addr::operator!= ( const ACE_ATM_Addr & SAP) const

Compare two addresses for inequality.

◆ operator==()

bool ACE_ATM_Addr::operator== ( const ACE_ATM_Addr & SAP) const

Compare two addresses for equality. The addresses are considered equal if they contain the same ATM address. Q: Is there any other check for equality needed for ATM?

◆ set() [1/3]

int ACE_ATM_Addr::set ( const ACE_ATM_Addr & sap,
u_char selector = DEFAULT_SELECTOR )

Initializes from another ACE_ATM_Addr.

◆ set() [2/3]

int ACE_ATM_Addr::set ( const ACE_TCHAR sap[],
u_char selector = DEFAULT_SELECTOR )

Initializes an ACE_ATM_Addr from the <sap> which can be "atm-address" (e.g., "47.0005.80.ffe100.0000.f20f.2200.0020480694f9.00") or "hostname" (e.g., "frisbee.cs.wustl.edu").

◆ set() [3/3]

int ACE_ATM_Addr::set ( const ATM_Addr * sap,
u_char selector = DEFAULT_SELECTOR )

Initializes an ACE_ATM_Addr from an ATMSAPAddress/sockaddr_atm structure. This is vendor specific (FORE systems). May need to change when other vendors are supported.

◆ set_addr()

void ACE_ATM_Addr::set_addr ( const void * addr,
int len )
virtual

Set a pointer to the address.

Reimplemented from ACE_Addr.

◆ set_selector()

void ACE_ATM_Addr::set_selector ( u_char selector)
inline

Set the selector for the network address.

◆ string_to_addr()

int ACE_ATM_Addr::string_to_addr ( const ACE_TCHAR sap[])
virtual

Initializes an ACE_ATM_Addr from the <sap> which can be "atm-address" (e.g., "47.0005.80.ffe100.0000.f20f.2200.0020480694f9.00") or "hostname" (e.g., "frisbee.cs.wustl.edu").

Member Data Documentation

◆ ACE_ALLOC_HOOK_DECLARE

ACE_ATM_Addr::ACE_ALLOC_HOOK_DECLARE

Declare the dynamic allocation hooks.

◆ atm_addr_

ATM_Addr ACE_ATM_Addr::atm_addr_
private

◆ DEFAULT_SELECTOR

const int ACE_ATM_Addr::DEFAULT_SELECTOR = 0x0
static

◆ LINE_RATE

const long ACE_ATM_Addr::LINE_RATE = 0L
static

◆ OPT_FLAGS_CPID

const int ACE_ATM_Addr::OPT_FLAGS_CPID = 0
static

◆ OPT_FLAGS_PMP

const int ACE_ATM_Addr::OPT_FLAGS_PMP = 0
static

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