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 "ace/INET_Addr.h"
00027
00028 #include "orbsvcs/PortableGroup/portablegroup_export.h"
00029
00030 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00031
00032
00033
00034
00035
00036
00037
00038
00039 class TAO_PortableGroup_Export TAO_UIPMC_Endpoint : public TAO_Endpoint
00040 {
00041 public:
00042
00043
00044
00045 TAO_UIPMC_Endpoint (void);
00046
00047
00048 TAO_UIPMC_Endpoint (const ACE_INET_Addr &addr);
00049
00050
00051 TAO_UIPMC_Endpoint (const CORBA::Octet class_d_address[4],
00052 CORBA::UShort port);
00053
00054
00055 ~TAO_UIPMC_Endpoint (void);
00056
00057
00058
00059
00060 virtual TAO_Endpoint *next (void);
00061 virtual int addr_to_string (char *buffer, size_t length);
00062
00063
00064 virtual TAO_Endpoint *duplicate (void);
00065
00066
00067
00068 CORBA::Boolean is_equivalent (const TAO_Endpoint *other_endpoint);
00069
00070
00071 CORBA::ULong hash (void);
00072
00073
00074
00075
00076
00077
00078 const ACE_INET_Addr &object_addr (void) const;
00079
00080
00081 void object_addr (const ACE_INET_Addr &addr);
00082
00083
00084
00085 const char *get_host_addr (void) const;
00086
00087
00088 CORBA::UShort port (void) const;
00089
00090
00091 CORBA::UShort port (CORBA::UShort p);
00092
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::UShort port_;
00111
00112
00113
00114 ACE_INET_Addr object_addr_;
00115
00116
00117
00118 TAO_UIPMC_Endpoint *next_;
00119 };
00120
00121 TAO_END_VERSIONED_NAMESPACE_DECL
00122
00123 #if defined (__ACE_INLINE__)
00124 # include "orbsvcs/PortableGroup/UIPMC_Endpoint.i"
00125 #endif
00126
00127 #include "ace/post.h"
00128
00129 #endif