00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef TAO_DIOP_ENDPOINT_H
00017 #define TAO_DIOP_ENDPOINT_H
00018 #include "ace/pre.h"
00019
00020 #include "tao/orbconf.h"
00021
00022 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00023 # pragma once
00024 #endif
00025
00026 #if defined (TAO_HAS_DIOP) && (TAO_HAS_DIOP != 0)
00027
00028 #include "tao/Strategies/strategies_export.h"
00029 #include "tao/Endpoint.h"
00030 #include "tao/CORBA_String.h"
00031 #include "ace/INET_Addr.h"
00032
00033 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00034
00035 class TAO_DIOP_Connection_Handler;
00036
00037
00038
00039
00040
00041
00042
00043
00044 class TAO_Strategies_Export TAO_DIOP_Endpoint : public TAO_Endpoint
00045 {
00046 public:
00047
00048 friend class TAO_DIOP_Profile;
00049 friend class TAO_SSLIOP_Profile;
00050
00051
00052
00053
00054 TAO_DIOP_Endpoint (void);
00055
00056
00057
00058 TAO_DIOP_Endpoint (const char *host,
00059 CORBA::UShort port,
00060 const ACE_INET_Addr &addr,
00061 CORBA::Short priority = TAO_INVALID_PRIORITY);
00062
00063
00064 TAO_DIOP_Endpoint (const ACE_INET_Addr &addr,
00065 int use_dotted_decimal_addresses);
00066
00067
00068 TAO_DIOP_Endpoint (const char *host,
00069 CORBA::UShort port,
00070 CORBA::Short priority);
00071
00072
00073 ~TAO_DIOP_Endpoint (void);
00074
00075
00076
00077
00078
00079
00080
00081 virtual TAO_Endpoint *next (void);
00082 virtual int addr_to_string (char *buffer, size_t length);
00083 virtual TAO_Endpoint *duplicate (void);
00084
00085
00086
00087 CORBA::Boolean is_equivalent (const TAO_Endpoint *other_endpoint);
00088
00089
00090 CORBA::ULong hash (void);
00091
00092
00093
00094
00095
00096
00097
00098 const ACE_INET_Addr &object_addr (void) const;
00099
00100
00101
00102 const char *host (void) const;
00103
00104
00105
00106 const char *host (const char *h);
00107
00108
00109 CORBA::UShort port (void) const;
00110
00111
00112 CORBA::UShort port (CORBA::UShort p);
00113
00114
00115
00116
00117 private:
00118
00119
00120 int set (const ACE_INET_Addr &addr,
00121 int use_dotted_decimal_addresses);
00122
00123
00124 CORBA::String_var host_;
00125
00126
00127 CORBA::UShort port_;
00128
00129
00130
00131 ACE_INET_Addr object_addr_;
00132
00133
00134 int object_addr_set_;
00135
00136
00137
00138 TAO_DIOP_Endpoint *next_;
00139 };
00140
00141 TAO_END_VERSIONED_NAMESPACE_DECL
00142
00143 #if defined (__ACE_INLINE__)
00144 # include "tao/Strategies/DIOP_Endpoint.i"
00145 #endif
00146
00147 #endif
00148
00149 #include "ace/post.h"
00150 #endif