summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/TransceiverI.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceSSL/TransceiverI.h')
-rw-r--r--cpp/src/IceSSL/TransceiverI.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/cpp/src/IceSSL/TransceiverI.h b/cpp/src/IceSSL/TransceiverI.h
new file mode 100644
index 00000000000..442b42a6758
--- /dev/null
+++ b/cpp/src/IceSSL/TransceiverI.h
@@ -0,0 +1,62 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2006 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+#ifndef ICE_SSL_TRANSCEIVER_I_H
+#define ICE_SSL_TRANSCEIVER_I_H
+
+#include <InstanceF.h>
+#include <Ice/LoggerF.h>
+#include <Ice/StatsF.h>
+#include <Ice/Transceiver.h>
+
+#include <openssl/ssl.h>
+
+namespace IceSSL
+{
+
+class ConnectorI;
+class AcceptorI;
+
+class TransceiverI : public IceInternal::Transceiver
+{
+public:
+
+ virtual SOCKET fd();
+ virtual void close();
+ virtual void shutdownWrite();
+ virtual void shutdownReadWrite();
+ virtual void write(IceInternal::Buffer&, int);
+ virtual void read(IceInternal::Buffer&, int);
+ virtual std::string type() const;
+ virtual std::string toString() const;
+ virtual void initialize(int);
+
+private:
+
+ TransceiverI(const InstancePtr&, SSL*, SOCKET);
+ virtual ~TransceiverI();
+ friend class ConnectorI;
+ friend class AcceptorI;
+
+ const InstancePtr _instance;
+ const Ice::LoggerPtr _logger;
+ const Ice::StatsPtr _stats;
+
+ SSL* _ssl;
+ SOCKET _fd;
+
+ const std::string _desc;
+#ifdef _WIN32
+ const bool _isPeerLocal;
+#endif
+};
+
+}
+
+#endif