diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-06-18 04:07:34 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-06-18 04:07:34 +0000 |
commit | dfdc610629ae7e8fd4839082737dbaad95da9847 (patch) | |
tree | bb5bb9690ce49b7c8292dd6ded567bff40d73a2d /ace/CLASSIX/Addr.h | |
parent | 8f712b526c16318191816fe5155ede4330836f8b (diff) | |
download | ATCD-dfdc610629ae7e8fd4839082737dbaad95da9847.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/CLASSIX/Addr.h')
-rw-r--r-- | ace/CLASSIX/Addr.h | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/ace/CLASSIX/Addr.h b/ace/CLASSIX/Addr.h new file mode 100644 index 00000000000..77664defc35 --- /dev/null +++ b/ace/CLASSIX/Addr.h @@ -0,0 +1,95 @@ +/* -*- C++ -*- */ +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// ipp_ace +// +// = FILENAME +// CLASSIX_Addr.h +// +// = AUTHOR +// Wei Chiang +// +// = COPYRIGHT +// Copyright 1998 Nokia Telecommunications +// +// ============================================================================ + +#if !defined (ACE_CLASSIX_ADDR_H) +#define ACE_CLASSIX_ADDR_H + +#include "ace/ACE.h" +#include "ace/Addr.h" + +#include <ipc/chIpc.h> +#include <CLASSIX/OS.h> + +class ACE_Export ACE_CLASSIX_Addr : public ACE_Addr +{ + // = TITLE + // Defines the ClassiX IPC address format. + // + // = DESCRIPTION + // This class defines basic interfaces for "ACE-like" address for + // Chorus port. +public: + enum + { + ACE_CLASSIX_ADDR_UNKNOWN = ACE_INVALID_HANDLE, /* K_NONEPORT */ + ACE_CLASSIX_ADDR_DEFAULT = K_DEFAULTPORT, + AF_CLASSIX = AF_MAX + 1 + }; + + enum Addr_Type + { + PORT, // use Peer_Port + GROUP, // use Peer_Group + STAMP, // use peer_Stamp + DYNAMIC, // use Peer_Group + UNDEFINED + }; + + + /* -----------------------------------------------------*/ + // = INITIALIZATION + ACE_CLASSIX_Addr(int /* size of the underlying address structure*/); + virtual ~ACE_CLASSIX_Addr (void); + + + /* -----------------------------------------------------*/ + // = Direct initialization methods (useful after the object has been + // constructed). + // Returns 0 on success, -1 otherwise. + // + + /* -----------------------------------------------------*/ + // = ACCESS + // + virtual const KnUniqueId& get_id (void) const; + // Returns a reference to the unique identifier + + virtual ACE_HANDLE get_port_number(void) const; + virtual ACE_HANDLE get_handle(void) const; + // Returns the local port no( can be used as an ACE_HANDLE) + + virtual int is_configured(void) const; + // Returns 1, if address information is proper; Returns 0 otherwise + virtual ACE_CLASSIX_Addr::Addr_Type is_type(void) const; + // returns the type of the address + + // = HELPER + virtual void dump(void) const; + + ACE_ALLOC_HOOK_DECLARE; + // Declares the dynamic allocation hooks. + +private: +}; + +#if defined (__ACE_INLINE__) +#include "CLASSIX/Addr.i" +#endif /* __ACE_INLINE__ */ + +#endif /* ACE_CLASSIX_ADDR_H */ |