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 = 0, int size = 0);
    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);
    virtual int addr_to_string (char addr[], size_t) const;
    virtual int string_to_addr (const char addr[]);
    virtual int operator == (const ACE_Addr &sap) const;
    virtual int operator != (const ACE_Addr &sap) const;
    void base_set (int type, int size);
    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 = 0, int size = 0);

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);
virtual int addr_to_string (char addr[], size_t) const;
virtual int string_to_addr (const char addr[]);

Equality/inequality tests

virtual int operator == (const ACE_Addr &sap) const;
virtual int operator != (const ACE_Addr &sap) const;
void base_set (int type, int size);
static const ACE_Addr sap_any;
void dump (void) const;
ACE_ALLOC_HOOK_DECLARE;

AUTHOR

Doug Schmidt

LIBRARY

ace