summaryrefslogtreecommitdiff
path: root/src/SocketCore.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/SocketCore.cc')
-rw-r--r--src/SocketCore.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/SocketCore.cc b/src/SocketCore.cc
index 50e974f5..3f04ee54 100644
--- a/src/SocketCore.cc
+++ b/src/SocketCore.cc
@@ -1324,6 +1324,15 @@ void SocketCore::setSocketRecvBufferSize(int size)
int SocketCore::getSocketRecvBufferSize() { return socketRecvBufferSize_; }
+size_t SocketCore::getRecvBufferedLength() const
+{
+ if (!tlsSession_) {
+ return 0;
+ }
+
+ return tlsSession_->getRecvBufferedLength();
+}
+
std::vector<SockAddr> SocketCore::getInterfaceAddress(const std::string& iface,
int family, int aiFlags)
{