jens@0: // jens@0: // BLIPFrameWriter.h jens@0: // MYNetwork jens@0: // jens@0: // Created by Jens Alfke on 5/18/08. jens@0: // Copyright 2008 Jens Alfke. All rights reserved. jens@0: // jens@0: jens@0: #import "TCPWriter.h" jens@0: @class BLIPRequest, BLIPResponse, BLIPMessage; jens@0: jens@0: jens@26: /** INTERNAL class that sends BLIP frames over the socket. */ jens@0: @interface BLIPWriter : TCPWriter jens@0: { jens@26: @private jens@0: NSMutableArray *_outBox; jens@11: UInt32 _numRequestsSent; jens@0: } jens@0: jens@0: - (BOOL) sendRequest: (BLIPRequest*)request response: (BLIPResponse*)response; jens@0: - (BOOL) sendMessage: (BLIPMessage*)message; jens@0: jens@11: @property (readonly) UInt32 numRequestsSent; jens@0: jens@0: @end