Index: src/OFTLSSocket.h ================================================================== --- src/OFTLSSocket.h +++ src/OFTLSSocket.h @@ -32,16 +32,18 @@ * * This class is a class cluster and returns a suitable OFTLSSocket subclass, * if available. * * Subclasses need to override @ref accept, @ref lowlevelReadIntoBuffer:length:, - * @ref lowlevelWriteBuffer:length:, @ref lowlevelIsAtEndOfStream and - * @ref startTLSForHost:port:. In order to get access to the lowlevel TCP - * methods (you cannot call `super`, as the class is abstract), the private - * methods @ref TCPAccept, @ref lowlevelTCPReadIntoBuffer:length:, - * @ref lowlevelTCPWriteBuffer:length: and @ref lowlevelTCPIsAtEndOfStream are - * provided. + * @ref lowlevelWriteBuffer:length: and @ref startTLSForHost:port:. The method + * @ref hasDataInReadBuffer should be overridden to return `true` if the TLS + * socket has cached unprocessed data internally, while returning + * `[super hasDataInReadBuffer]` if it does not have any unprocessed data. In + * order to get access to the lowlevel TCP methods (you cannot call `super`, as + * the class is abstract), the private methods @ref TCPAccept, + * @ref lowlevelTCPReadIntoBuffer:length: and + * @ref lowlevelTCPWriteBuffer:length: are provided. */ @interface OFTLSSocket: OFTCPSocket { bool _verifiesCertificates; OF_RESERVE_IVARS(OFTLSSocket, 4) @@ -99,16 +101,10 @@ /** * @brief This method should never be called directly. Only subclasses of * @ref OFTLSSocket are allowed to call it. */ - (size_t)lowlevelTCPWriteBuffer: (const void *)buffer length: (size_t)length; - -/** - * @brief This method should never be called directly. Only subclasses of - * @ref OFTLSSocket are allowed to call it. - */ -- (bool)lowlevelTCPIsAtEndOfStream; @end #ifdef __cplusplus extern "C" { #endif Index: src/OFTLSSocket.m ================================================================== --- src/OFTLSSocket.m +++ src/OFTLSSocket.m @@ -198,15 +198,10 @@ OF_UNRECOGNIZED_SELECTOR } - (size_t)lowlevelWriteBuffer: (const void *)buffer length: (size_t)length { - OF_UNRECOGNIZED_SELECTOR -} - -- (bool)lowlevelIsAtEndOfStream -{ OF_UNRECOGNIZED_SELECTOR } - (instancetype)TCPAccept {