diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-01-16 17:41:17 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-01-16 17:41:17 +0900 |
| commit | e60181d1ad73ef2ca873d8d2ba0e13a932f0751a (patch) | |
| tree | 0cbbaad16fcda83770094de552f9fcbf43de4188 /src/SocketCore.h | |
| parent | 629099d40d1d6675772aa1082ff0b9b27e9c522c (diff) | |
Removed SocketCore::peekData()
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. |
