@@ -93,18 +93,18 @@ @throw [OFNotConnectedException exceptionWithSocket: self]; if (_atEndOfStream) { OFReadFailedException *e; - e = [OFReadFailedException exceptionWithStream: self + e = [OFReadFailedException exceptionWithObject: self requestedLength: length]; e->_errNo = ENOTCONN; @throw e; } if ((ret = recv(_socket, buffer, length, 0)) < 0) - @throw [OFReadFailedException exceptionWithStream: self + @throw [OFReadFailedException exceptionWithObject: self requestedLength: length]; if (ret == 0) _atEndOfStream = true; @@ -118,18 +118,18 @@ @throw [OFNotConnectedException exceptionWithSocket: self]; if (_atEndOfStream) { OFWriteFailedException *e; - e = [OFWriteFailedException exceptionWithStream: self + e = [OFWriteFailedException exceptionWithObject: self requestedLength: length]; e->_errNo = ENOTCONN; @throw e; } if (send(_socket, buffer, length, 0) < length) - @throw [OFWriteFailedException exceptionWithStream: self + @throw [OFWriteFailedException exceptionWithObject: self requestedLength: length]; } #ifdef _WIN32 - (void)setBlocking: (bool)enable