summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/SslTransceiver.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2003-01-30 22:06:27 +0000
committerMarc Laukien <marc@zeroc.com>2003-01-30 22:06:27 +0000
commit6a2e33a3de977f2dbb476efd1bf130c9b8f35943 (patch)
treefdf673b4cf7256b58296f820d770c5e06acffb75 /cpp/src/IceSSL/SslTransceiver.cpp
parentstarted with stats interface (diff)
downloadice-6a2e33a3de977f2dbb476efd1bf130c9b8f35943.tar.bz2
ice-6a2e33a3de977f2dbb476efd1bf130c9b8f35943.tar.xz
ice-6a2e33a3de977f2dbb476efd1bf130c9b8f35943.zip
stats
Diffstat (limited to 'cpp/src/IceSSL/SslTransceiver.cpp')
-rw-r--r--cpp/src/IceSSL/SslTransceiver.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/src/IceSSL/SslTransceiver.cpp b/cpp/src/IceSSL/SslTransceiver.cpp
index 952f04e3ed0..df84882300e 100644
--- a/cpp/src/IceSSL/SslTransceiver.cpp
+++ b/cpp/src/IceSSL/SslTransceiver.cpp
@@ -13,6 +13,7 @@
// **********************************************************************
#include <Ice/LoggerUtil.h>
+#include <Ice/Stats.h>
#include <Ice/Buffer.h>
#include <Ice/Network.h>
#include <Ice/LocalException.h>
@@ -169,6 +170,11 @@ IceSSL::SslTransceiver::read(Buffer& buf, int timeout)
out << " bytes via ssl\n" << fdToString(SSL_get_fd(_sslConnection));
}
+ if(_stats)
+ {
+ _stats->bytesReceived(_name, bytesRead);
+ }
+
totalBytesRead += bytesRead;
buf.i += bytesRead;
@@ -989,6 +995,8 @@ IceSSL::SslTransceiver::SslTransceiver(const OpenSSLPluginIPtr& plugin,
_plugin(plugin),
_traceLevels(plugin->getTraceLevels()),
_logger(plugin->getLogger()),
+ _stats(plugin->getStats()),
+ _name("ssl"),
_fd(fd),
_certificateVerifier(certificateVerifier)
{