BLIP/BLIPWriter.h
author Jens Alfke <jens@mooseyard.com>
Wed Jul 01 14:14:32 2009 -0700 (2009-07-01)
changeset 50 63baa74c903f
parent 11 29e8b03c05d4
permissions -rw-r--r--
Fix to BLIPMessage for Chatty (mark new outgoing BLIPMessages as "complete".)
Lots of fixes for Bonjour stuff, including making the hostname lookup asynchronous in BonjourService.
jens@0
     1
//
jens@0
     2
//  BLIPFrameWriter.h
jens@0
     3
//  MYNetwork
jens@0
     4
//
jens@0
     5
//  Created by Jens Alfke on 5/18/08.
jens@0
     6
//  Copyright 2008 Jens Alfke. All rights reserved.
jens@0
     7
//
jens@0
     8
jens@0
     9
#import "TCPWriter.h"
jens@0
    10
@class BLIPRequest, BLIPResponse, BLIPMessage;
jens@0
    11
jens@0
    12
jens@26
    13
/** INTERNAL class that sends BLIP frames over the socket. */
jens@0
    14
@interface BLIPWriter : TCPWriter
jens@0
    15
{
jens@26
    16
    @private
jens@0
    17
    NSMutableArray *_outBox;
jens@11
    18
    UInt32 _numRequestsSent;
jens@0
    19
}
jens@0
    20
jens@0
    21
- (BOOL) sendRequest: (BLIPRequest*)request response: (BLIPResponse*)response;
jens@0
    22
- (BOOL) sendMessage: (BLIPMessage*)message;
jens@0
    23
jens@11
    24
@property (readonly) UInt32 numRequestsSent;
jens@0
    25
jens@0
    26
@end