jens@0: // jens@0: // BLIPReader.h jens@0: // MYNetwork jens@0: // jens@0: // Created by Jens Alfke on 5/10/08. jens@0: // Copyright 2008 Jens Alfke. All rights reserved. jens@0: // jens@0: jens@0: #import "TCPStream.h" jens@0: #import "BLIP_Internal.h" jens@0: @class BLIPResponse; jens@0: jens@0: jens@0: /** INTERNAL class that reads BLIP frames from the socket. */ jens@0: @interface BLIPReader : TCPReader jens@0: { jens@26: @private jens@0: BLIPFrameHeader _curHeader; jens@0: UInt32 _curBytesRead; jens@0: NSMutableData *_curBody; jens@0: jens@11: UInt32 _numRequestsReceived; jens@11: NSMutableDictionary *_pendingRequests, *_pendingResponses; jens@0: } jens@0: jens@0: - (void) _addPendingResponse: (BLIPResponse*)response; jens@0: jens@0: @end