BLIP/BLIPReader.h
author Jens Alfke <jens@mooseyard.com>
Sun May 24 15:03:39 2009 -0700 (2009-05-24)
changeset 49 20cccc7c26ee
parent 11 29e8b03c05d4
permissions -rw-r--r--
Misc. tweaks made while porting Chatty to use MYNetwork.
* Allow -[BLIPConnection sendRequest:] to re-send an already-sent or received request.
* Allow use of the basic -init method for BLIPConnection.
* Some new convenience factory methods.
* Broke dependencies on Security.framework out into new TCPEndpoint+Certs.m source file, so client apps aren't forced to link against Security.
     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     @private
    18     BLIPFrameHeader _curHeader;
    19     UInt32 _curBytesRead;
    20     NSMutableData *_curBody;
    21 
    22     UInt32 _numRequestsReceived;
    23     NSMutableDictionary *_pendingRequests, *_pendingResponses;
    24 }
    25 
    26 - (void) _addPendingResponse: (BLIPResponse*)response;
    27 
    28 @end