00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 #ifndef ACE_ADDR_H
00014 #define ACE_ADDR_H
00015 
00016 #include  "ace/pre.h"
00017 
00018 #include  "ace/ACE_export.h"
00019 
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif 
00023 
00024 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 class ACE_Export ACE_Addr
00033 {
00034 public:
00035   
00036 
00037   ACE_Addr (int type = -1,
00038             int size = -1);
00039 
00040 
00041   virtual ~ACE_Addr (void);
00042 
00043   
00044 
00045 
00046   int get_size (void) const;
00047 
00048 
00049   void set_size (int size);
00050 
00051   
00052 
00053 
00054   int get_type (void) const;
00055 
00056 
00057   void set_type (int type);
00058 
00059 
00060   virtual void *get_addr (void) const;
00061 
00062 
00063   virtual void set_addr (void *, int len);
00064 
00065   
00066 
00067   bool operator == (const ACE_Addr &sap) const;
00068 
00069 
00070   bool operator != (const ACE_Addr &sap) const;
00071 
00072 
00073   void base_set (int type, int size);
00074 
00075 
00076   static const ACE_Addr sap_any;
00077 
00078 
00079 
00080   virtual unsigned long hash (void) const;
00081 
00082 
00083   void dump (void) const;
00084 
00085 
00086   ACE_ALLOC_HOOK_DECLARE;
00087 
00088 protected:
00089 
00090   int addr_type_;
00091 
00092 
00093   int addr_size_;
00094 };
00095 
00096 ACE_END_VERSIONED_NAMESPACE_DECL
00097 
00098 #if defined (__ACE_INLINE__)
00099 #include "ace/Addr.inl"
00100 #endif 
00101 
00102 #include  "ace/post.h"
00103 
00104 #endif