diff options
Diffstat (limited to 'src/SocketCore.h')
| -rw-r--r-- | src/SocketCore.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/SocketCore.h b/src/SocketCore.h index ed91195e..bbf01ea7 100644 --- a/src/SocketCore.h +++ b/src/SocketCore.h @@ -96,14 +96,6 @@ private: #endif // HAVE_LIBSSL #ifdef HAVE_LIBGNUTLS gnutls_session_t sslSession_; - char* peekBuf_; - size_t peekBufLength_; - size_t peekBufMax_; - - size_t shiftPeekData(char* data, size_t len); - void addPeekData(char* data, size_t len); - ssize_t gnutlsRecv(char* data, size_t len); - ssize_t gnutlsPeek(char* data, size_t len); void gnutlsRecordCheckDirection(); #endif // HAVE_LIBGNUTLS @@ -295,22 +287,6 @@ public: } /** - * Reads up to len bytes from this socket, but bytes are not removed from - * this socket. - * This method internally calls isReadable(). The parameter timeout is used - * for this method call. - * @param data holder to store data. - * @param len the maximum size data can store. This method assigns - * the number of bytes read to len. - */ - void peekData(char* data, size_t& len); - - void peekData(unsigned char* data, size_t& len) - { - peekData(reinterpret_cast<char*>(data), len); - } - - /** * Makes this socket secure. * If the system has not OpenSSL, then this method do nothing. * connection must be established before calling this method. |
