diff options
author | Marc Laukien <marc@zeroc.com> | 2003-01-30 22:06:27 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2003-01-30 22:06:27 +0000 |
commit | 6a2e33a3de977f2dbb476efd1bf130c9b8f35943 (patch) | |
tree | fdf673b4cf7256b58296f820d770c5e06acffb75 /cpp/src/IceSSL/SslServerTransceiver.cpp | |
parent | started with stats interface (diff) | |
download | ice-6a2e33a3de977f2dbb476efd1bf130c9b8f35943.tar.bz2 ice-6a2e33a3de977f2dbb476efd1bf130c9b8f35943.tar.xz ice-6a2e33a3de977f2dbb476efd1bf130c9b8f35943.zip |
stats
Diffstat (limited to 'cpp/src/IceSSL/SslServerTransceiver.cpp')
-rw-r--r-- | cpp/src/IceSSL/SslServerTransceiver.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/src/IceSSL/SslServerTransceiver.cpp b/cpp/src/IceSSL/SslServerTransceiver.cpp index 08ac3e7311d..ca4a49f3e16 100644 --- a/cpp/src/IceSSL/SslServerTransceiver.cpp +++ b/cpp/src/IceSSL/SslServerTransceiver.cpp @@ -13,6 +13,7 @@ // ********************************************************************** #include <Ice/LoggerUtil.h> +#include <Ice/Stats.h> #include <Ice/Network.h> #include <Ice/LocalException.h> #include <IceSSL/OpenSSL.h> @@ -87,6 +88,11 @@ IceSSL::SslServerTransceiver::write(Buffer& buf, int timeout) out << " bytes via ssl\n" << fdToString(SSL_get_fd(_sslConnection)); } + if(_stats) + { + _stats->bytesSent(_name, bytesWritten); + } + totalBytesWritten += bytesWritten; buf.i += bytesWritten; |