From 37b28711bfc05e5446c1490209ac69ca751f1e95 Mon Sep 17 00:00:00 2001 From: Kyle Nekritz Date: Fri, 4 Dec 2015 09:18:39 -0800 Subject: [PATCH] Remove getBytesRead and getBytesWritten from folly::AsyncSSLSocket. Summary: getRawBytesReceived and getRawBytesWritten should be used instead. Reviewed By: mzlee Differential Revision: D2708684 fb-gh-sync-id: 2de87dc2b8c3466f94293a3d7df89fc5fce3a00f --- folly/io/async/AsyncSSLSocket.h | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/folly/io/async/AsyncSSLSocket.h b/folly/io/async/AsyncSSLSocket.h index ee750031..a0b96a08 100644 --- a/folly/io/async/AsyncSSLSocket.h +++ b/folly/io/async/AsyncSSLSocket.h @@ -462,26 +462,6 @@ class AsyncSSLSocket : public virtual AsyncSocket { */ int getSSLCertSize() const; - /* Get the number of bytes read from the wire (including protocol - * overhead). Returns 0 once the connection has been closed. - */ - unsigned long getBytesRead() const { - if (ssl_ != nullptr) { - return BIO_number_read(SSL_get_rbio(ssl_)); - } - return 0; - } - - /* Get the number of bytes written to the wire (including protocol - * overhead). Returns 0 once the connection has been closed. - */ - unsigned long getBytesWritten() const { - if (ssl_ != nullptr) { - return BIO_number_written(SSL_get_wbio(ssl_)); - } - return 0; - } - virtual void attachEventBase(EventBase* eventBase) override { AsyncSocket::attachEventBase(eventBase); handshakeTimeout_.attachEventBase(eventBase); -- 2.34.1