BLIP/BLIPReader.h
author Jens Alfke <jens@mooseyard.com>
Tue Jun 03 16:56:33 2008 -0700 (2008-06-03)
changeset 11 29e8b03c05d4
parent 0 9d67172bb323
child 26 cb9cdf247239
permissions -rw-r--r--
* Initial checkin of BLIP.py. (Receiving seems to work.)
* FIXED: Abbreviation list in BLIPProperties was messed up.
* Renamed some instance variables to use 'request' instead of 'query'.
* Test client doesn't throw an assertion-failure now when the number of unresponded requests exceeds 100.
     1 //
     2 //  BLIPReader.h
     3 //  MYNetwork
     4 //
     5 //  Created by Jens Alfke on 5/10/08.
     6 //  Copyright 2008 Jens Alfke. All rights reserved.
     7 //
     8 
     9 #import "TCPStream.h"
    10 #import "BLIP_Internal.h"
    11 @class BLIPResponse;
    12 
    13 
    14 /** INTERNAL class that reads BLIP frames from the socket. */
    15 @interface BLIPReader : TCPReader
    16 {
    17     BLIPFrameHeader _curHeader;
    18     UInt32 _curBytesRead;
    19     NSMutableData *_curBody;
    20 
    21     UInt32 _numRequestsReceived;
    22     NSMutableDictionary *_pendingRequests, *_pendingResponses;
    23 }
    24 
    25 - (void) _addPendingResponse: (BLIPResponse*)response;
    26 
    27 @end