BLIP/BLIPWriter.h
author Jens Alfke <jens@mooseyard.com>
Wed Jun 11 14:58:38 2008 -0700 (2008-06-11)
changeset 16 6f608b552b77
parent 0 9d67172bb323
child 26 cb9cdf247239
permissions -rw-r--r--
* Added a timeout property to TCPConnection. Set it before calling -open, if you want a shorter timeout than the default.
* Made the utility function BLIPMakeError public.
     1 //
     2 //  BLIPFrameWriter.h
     3 //  MYNetwork
     4 //
     5 //  Created by Jens Alfke on 5/18/08.
     6 //  Copyright 2008 Jens Alfke. All rights reserved.
     7 //
     8 
     9 #import "TCPWriter.h"
    10 @class BLIPRequest, BLIPResponse, BLIPMessage;
    11 
    12 
    13 @interface BLIPWriter : TCPWriter
    14 {
    15     NSMutableArray *_outBox;
    16     UInt32 _numRequestsSent;
    17 }
    18 
    19 - (BOOL) sendRequest: (BLIPRequest*)request response: (BLIPResponse*)response;
    20 - (BOOL) sendMessage: (BLIPMessage*)message;
    21 
    22 @property (readonly) UInt32 numRequestsSent;
    23 
    24 @end