BLIP/BLIPReader.h
author snej@snej.local
Tue Dec 02 22:42:56 2008 -0800 (2008-12-02)
changeset 25 a4875607a3a0
parent 0 9d67172bb323
child 26 cb9cdf247239
permissions -rw-r--r--
Added iPhone demo project
jens@0
     1
//
jens@0
     2
//  BLIPReader.h
jens@0
     3
//  MYNetwork
jens@0
     4
//
jens@0
     5
//  Created by Jens Alfke on 5/10/08.
jens@0
     6
//  Copyright 2008 Jens Alfke. All rights reserved.
jens@0
     7
//
jens@0
     8
jens@0
     9
#import "TCPStream.h"
jens@0
    10
#import "BLIP_Internal.h"
jens@0
    11
@class BLIPResponse;
jens@0
    12
jens@0
    13
jens@0
    14
/** INTERNAL class that reads BLIP frames from the socket. */
jens@0
    15
@interface BLIPReader : TCPReader
jens@0
    16
{
jens@0
    17
    BLIPFrameHeader _curHeader;
jens@0
    18
    UInt32 _curBytesRead;
jens@0
    19
    NSMutableData *_curBody;
jens@0
    20
jens@11
    21
    UInt32 _numRequestsReceived;
jens@11
    22
    NSMutableDictionary *_pendingRequests, *_pendingResponses;
jens@0
    23
}
jens@0
    24
jens@0
    25
- (void) _addPendingResponse: (BLIPResponse*)response;
jens@0
    26
jens@0
    27
@end