From: Kyle Nekritz Date: Fri, 4 Dec 2015 17:18:39 +0000 (-0800) Subject: Remove getBytesRead and getBytesWritten from folly::AsyncSSLSocket. X-Git-Tag: deprecate-dynamic-initializer~208 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=37b28711bfc05e5446c1490209ac69ca751f1e95;p=folly.git 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 --- 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);