00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef TAO_UIPMC_ENDPOINT_H
00016 #define TAO_UIPMC_ENDPOINT_H
00017
00018 #include "ace/pre.h"
00019
00020 #include "tao/Endpoint.h"
00021
00022 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00023 # pragma once
00024 #endif
00025
00026 #include "tao/CORBA_String.h"
00027 #include "ace/INET_Addr.h"
00028
00029 #include "orbsvcs/PortableGroup/portablegroup_export.h"
00030
00031 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00032
00033
00034
00035
00036
00037
00038
00039
00040 class TAO_PortableGroup_Export TAO_UIPMC_Endpoint : public TAO_Endpoint
00041 {
00042 public:
00043
00044
00045
00046 TAO_UIPMC_Endpoint (void);
00047
00048
00049 TAO_UIPMC_Endpoint (const ACE_INET_Addr &addr);
00050
00051
00052 TAO_UIPMC_Endpoint (const CORBA::Octet class_d_address[4],
00053 CORBA::UShort port);
00054
00055
00056 ~TAO_UIPMC_Endpoint (void);
00057
00058
00059
00060
00061 virtual TAO_Endpoint *next (void);
00062 virtual int addr_to_string (char *buffer, size_t length);
00063
00064
00065 virtual TAO_Endpoint *duplicate (void);
00066
00067
00068
00069 CORBA::Boolean is_equivalent (const TAO_Endpoint *other_endpoint);
00070
00071
00072 CORBA::ULong hash (void);
00073
00074
00075
00076
00077
00078
00079 const ACE_INET_Addr &object_addr (void) const;
00080
00081
00082 void object_addr (const ACE_INET_Addr &addr);
00083
00084
00085
00086 const char *host (void) const;
00087
00088
00089 CORBA::UShort port (void) const;
00090
00091
00092 CORBA::UShort port (CORBA::UShort p);
00093
00094
00095
00096
00097 private:
00098
00099
00100 ACE_UINT32 uint_ip_addr (void) const;
00101 void uint_ip_addr (ACE_UINT32 ip_addr);
00102
00103
00104 void update_object_addr (void);
00105
00106
00107 CORBA::Octet class_d_address_[4];
00108
00109
00110 CORBA::String_var host_;
00111
00112
00113 CORBA::UShort port_;
00114
00115
00116
00117 ACE_INET_Addr object_addr_;
00118
00119
00120
00121 TAO_UIPMC_Endpoint *next_;
00122 };
00123
00124 TAO_END_VERSIONED_NAMESPACE_DECL
00125
00126 #if defined (__ACE_INLINE__)
00127 # include "orbsvcs/PortableGroup/UIPMC_Endpoint.inl"
00128 #endif
00129
00130 #include "ace/post.h"
00131
00132 #endif