1.1 --- a/BLIP/BLIPConnection.h Sun May 25 12:32:47 2008 -0700
1.2 +++ b/BLIP/BLIPConnection.h Thu Jun 19 16:22:05 2008 -0700
1.3 @@ -20,6 +20,7 @@
1.4 @interface BLIPConnection : TCPConnection
1.5 {
1.6 BLIPDispatcher *_dispatcher;
1.7 + BOOL _blipClosing;
1.8 }
1.9
1.10 /** The delegate object that will be called when the connection opens, closes or receives messages. */
1.11 @@ -73,6 +74,13 @@
1.12 /** Called when a BLIPResponse (to one of your requests) is received from the peer.
1.13 This is called <i>after</i> the response object's onComplete target, if any, is invoked.*/
1.14 - (void) connection: (BLIPConnection*)connection receivedResponse: (BLIPResponse*)response;
1.15 +
1.16 +/** Called when the peer wants to close the connection. Return YES to allow, NO to prevent. */
1.17 +- (BOOL) connectionReceivedCloseRequest: (BLIPConnection*)connection;
1.18 +
1.19 +/** Called if the peer refuses a close request.
1.20 + The typical error is BLIP error kBLIPError_Forbidden. */
1.21 +- (void) connection: (BLIPConnection*)connection closeRequestFailedWithError: (NSError*)error;
1.22 @end
1.23
1.24