NAME

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

SYNOPSIS

#include <ace/Addr.h>

class ACE_Addr { public: ACE_Addr (int type = -1, int size = -1); int get_size (void) const; void set_size (int size); int get_type (void) const; void set_type (int type); virtual void *get_addr (void) const; virtual void set_addr (void *, int len); int operator == (const ACE_Addr &sap) const; int operator != (const ACE_Addr &sap) const; void base_set (int type, int size); static const ACE_Addr &sap_any (void); static const ACE_Addr sap_any; void dump (void) const; ACE_ALLOC_HOOK_DECLARE; protected: int addr_type_; int addr_size_; };

Initialization method.

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

Get/set the size of the address.

int get_size (void) const;

void set_size (int size);

Get/set the type of the address.

int get_type (void) const;

void set_type (int type);

virtual void *get_addr (void) const;

virtual void set_addr (void *, int len);

Equality/inequality tests

int operator == (const ACE_Addr &sap) const;

int operator != (const ACE_Addr &sap) const;

void base_set (int type, int size);

static const ACE_Addr &sap_any (void);

This #define works around broken C++ compilers...

static const ACE_Addr sap_any;

void dump (void) const;

ACE_ALLOC_HOOK_DECLARE;

AUTHOR

Doug Schmidt

LIBRARY

ace