Ice 3.7 C++11 API Reference
ConnectionInfo.h
Go to the documentation of this file.
1 //
2 // Copyright (c) ZeroC, Inc. All rights reserved.
3 //
4 //
5 // Ice version 3.7.10
6 //
7 // <auto-generated>
8 //
9 // Generated from file `ConnectionInfo.ice'
10 //
11 // Warning: do not edit this file.
12 //
13 // </auto-generated>
14 //
15 
16 #ifndef __IceSSL_ConnectionInfo_h__
17 #define __IceSSL_ConnectionInfo_h__
18 
20 #include <Ice/ProxyF.h>
21 #include <Ice/ObjectF.h>
22 #include <Ice/ValueF.h>
23 #include <Ice/Exception.h>
24 #include <Ice/LocalObject.h>
25 #include <Ice/StreamHelpers.h>
26 #include <Ice/Comparable.h>
27 #include <Ice/OutgoingAsync.h>
28 #include <IceUtil/ScopedArray.h>
29 #include <Ice/Optional.h>
30 #include <Ice/Connection.h>
31 #include <IceUtil/UndefSysMacros.h>
32 #include <IceSSL/Plugin.h>
33 
34 #ifndef ICE_IGNORE_VERSION
35 # if ICE_INT_VERSION / 100 != 307
36 # error Ice version mismatch!
37 # endif
38 # if ICE_INT_VERSION % 100 >= 50
39 # error Beta header file detected
40 # endif
41 # if ICE_INT_VERSION % 100 < 10
42 # error Ice patch level mismatch!
43 # endif
44 #endif
45 
46 #ifndef ICESSL_API
47 # if defined(ICE_STATIC_LIBS)
48 # define ICESSL_API
49 # elif defined(ICESSL_API_EXPORTS)
50 # define ICESSL_API ICE_DECLSPEC_EXPORT
51 # else
52 # define ICESSL_API ICE_DECLSPEC_IMPORT
53 # endif
54 #endif
55 
56 #ifdef ICE_CPP11_MAPPING // C++11 mapping
57 
58 namespace IceSSL
59 {
60 
61 class ConnectionInfo;
62 
63 }
64 
65 namespace IceSSL
66 {
67 
72 class ICE_CLASS(ICESSL_API) ConnectionInfo : public ::Ice::ConnectionInfo
73 {
74 public:
75 
77 
78  ConnectionInfo() = default;
79 
80  ConnectionInfo(const ConnectionInfo&) = default;
84 
95  ConnectionInfo(const ::std::shared_ptr<::Ice::ConnectionInfo>& underlying, bool incoming, const ::std::string& adapterName, const ::std::string& connectionId, const ::std::string& cipher, const std::vector<CertificatePtr>& certs, bool verified) :
96  ::Ice::ConnectionInfo(underlying, incoming, adapterName, connectionId),
97  cipher(cipher),
98  certs(certs),
99  verified(verified)
100  {
101  }
102 
106  ::std::string cipher;
110  std::vector<CertificatePtr> certs;
114  bool verified;
115 };
116 
117 }
118 
120 namespace Ice
121 {
122 
123 }
125 
127 namespace IceSSL
128 {
129 
130 using ConnectionInfoPtr = ::std::shared_ptr<ConnectionInfo>;
131 
132 }
134 
135 #else // C++98 mapping
136 
137 namespace IceSSL
138 {
139 
140 class ConnectionInfo;
142 ICESSL_API ::Ice::LocalObject* upCast(ConnectionInfo*);
144 typedef ::IceInternal::Handle< ConnectionInfo> ConnectionInfoPtr;
145 
146 }
147 
148 namespace IceSSL
149 {
150 
155 class ICESSL_API ConnectionInfo : public ::Ice::ConnectionInfo
156 {
157 public:
158 
159  typedef ConnectionInfoPtr PointerType;
160 
161  virtual ~ConnectionInfo();
162 
163  ConnectionInfo()
164  {
165  }
166 
177  ConnectionInfo(const ::Ice::ConnectionInfoPtr& underlying, bool incoming, const ::std::string& adapterName, const ::std::string& connectionId, const ::std::string& cipher, const std::vector<CertificatePtr>& certs, bool verified) :
178  ::Ice::ConnectionInfo(underlying, incoming, adapterName, connectionId),
179  cipher(cipher),
180  certs(certs),
181  verified(verified)
182  {
183  }
184 
185 #ifdef ICE_CPP11_COMPILER
186  ConnectionInfo(const ConnectionInfo&) = default;
187  ConnectionInfo& operator=(const ConnectionInfo&) = default;
188 #endif
189 
193  ::std::string cipher;
197  std::vector<CertificatePtr> certs;
201  bool verified;
202 };
203 
205 inline bool operator==(const ConnectionInfo& lhs, const ConnectionInfo& rhs)
206 {
207  return static_cast<const ::Ice::LocalObject&>(lhs) == static_cast<const ::Ice::LocalObject&>(rhs);
208 }
209 
210 inline bool operator<(const ConnectionInfo& lhs, const ConnectionInfo& rhs)
211 {
212  return static_cast<const ::Ice::LocalObject&>(lhs) < static_cast<const ::Ice::LocalObject&>(rhs);
213 }
215 
216 }
217 
219 namespace Ice
220 {
221 
222 }
224 
225 #endif
226 
228 #endif
IceSSL::ConnectionInfo
Provides access to the connection details of an SSL connection.
Definition: ConnectionInfo.h:73
IceSSL
Definition: ConnectionInfo.h:59
IceSSL::ConnectionInfo::verified
bool verified
The certificate chain verification status.
Definition: ConnectionInfo.h:114
Optional.h
IceSSL::ConnectionInfo::ConnectionInfo
ConnectionInfo(const ::std::shared_ptr<::Ice::ConnectionInfo > &underlying, bool incoming, const ::std::string &adapterName, const ::std::string &connectionId, const ::std::string &cipher, const std::vector< CertificatePtr > &certs, bool verified)
One-shot constructor to initialize all data members.
Definition: ConnectionInfo.h:95
IceSSL::ConnectionInfo::operator=
ConnectionInfo & operator=(const ConnectionInfo &)=default
IceSSL::ConnectionInfo::ConnectionInfo
ConnectionInfo()=default
StreamHelpers.h
IceSSL::ConnectionInfo::operator=
ConnectionInfo & operator=(ConnectionInfo &&)=default
Ice::operator==
bool operator==(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition: Comparable.h:184
OutgoingAsync.h
ICE_MEMBER
#define ICE_MEMBER(API)
Definition: Config.h:177
Ice::ConnectionInfo
Base class providing access to the connection details.
Definition: Connection.h:218
ICESSL_API
#define ICESSL_API
Definition: ConnectionInfoF.h:49
IceSSL::ConnectionInfo::cipher
::std::string cipher
The negotiated cipher suite.
Definition: ConnectionInfo.h:106
LocalObject.h
PushDisableWarnings.h
ProxyF.h
Ice::operator<
bool operator<(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition: Comparable.h:136
Connection.h
UndefSysMacros.h
IceSSL::ConnectionInfo::ConnectionInfo
ConnectionInfo(ConnectionInfo &&)=default
ObjectF.h
Ice
Definition: BuiltinSequences.h:56
IceSSL::ConnectionInfo::certs
std::vector< CertificatePtr > certs
The certificate chain.
Definition: ConnectionInfo.h:110
IceSSL::ConnectionInfo::ConnectionInfo
ConnectionInfo(const ConnectionInfo &)=default
IceSSL::ConnectionInfo::~ConnectionInfo
virtual ~ConnectionInfo()
Comparable.h
ScopedArray.h
Plugin.h
Exception.h
ValueF.h
PopDisableWarnings.h