BLIP/BLIPWriter.h
author Jens Alfke <jens@mooseyard.com>
Sun May 25 13:43:03 2008 -0700 (2008-05-25)
changeset 7 5936db2c1987
child 11 29e8b03c05d4
permissions -rw-r--r--
Added -[TCPConnection initToNetService:] to make it easier to use with Bonjour. This allowed me to simplify BLIPEchoClient quite a lot.
     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 _numQueriesSent;
    17 }
    18 
    19 - (BOOL) sendRequest: (BLIPRequest*)request response: (BLIPResponse*)response;
    20 - (BOOL) sendMessage: (BLIPMessage*)message;
    21 
    22 @property (readonly) UInt32 numQueriesSent;
    23 
    24 @end