@@ -994,11 +994,31 @@ extern const NSTimeInterval XMPPStreamTimeoutNone;
994
994
/* *
995
995
* This method is called if the disconnect method is called.
996
996
* It may be used to determine if a disconnection was purposeful, or due to an error.
997
+ *
998
+ * Note: A disconnect may be either "clean" or "dirty".
999
+ * A "clean" disconnect is when the stream sends the closing </stream:stream> stanza before disconnecting.
1000
+ * A "dirty" disconnect is when the stream simply closes its TCP socket.
1001
+ * In most cases it makes no difference how the disconnect occurs,
1002
+ * but there are a few contexts in which the difference has various protocol implications.
1003
+ *
1004
+ * @see xmppStreamDidSendClosingStreamStanza
997
1005
**/
998
1006
- (void )xmppStreamWasToldToDisconnect : (XMPPStream *)sender ;
999
1007
1000
1008
/* *
1001
- * This methods is called if the XMPP Stream's connect times out
1009
+ * This method is called after the stream has sent the closing </stream:stream> stanza.
1010
+ * This signifies a "clean" disconnect.
1011
+ *
1012
+ * Note: A disconnect may be either "clean" or "dirty".
1013
+ * A "clean" disconnect is when the stream sends the closing </stream:stream> stanza before disconnecting.
1014
+ * A "dirty" disconnect is when the stream simply closes its TCP socket.
1015
+ * In most cases it makes no difference how the disconnect occurs,
1016
+ * but there are a few contexts in which the difference has various protocol implications.
1017
+ **/
1018
+ - (void )xmppStreamDidSendClosingStreamStanza : (XMPPStream *)sender ;
1019
+
1020
+ /* *
1021
+ * This methods is called if the XMPP stream's connect times out.
1002
1022
**/
1003
1023
- (void )xmppStreamConnectDidTimeout : (XMPPStream *)sender ;
1004
1024
@@ -1009,7 +1029,9 @@ extern const NSTimeInterval XMPPStreamTimeoutNone;
1009
1029
* Some examples:
1010
1030
* - The TCP socket was unexpectedly disconnected.
1011
1031
* - The SRV resolution of the domain failed.
1012
- * - Error parsing xml sent from server.
1032
+ * - Error parsing xml sent from server.
1033
+ *
1034
+ * @see xmppStreamConnectDidTimeout:
1013
1035
**/
1014
1036
- (void )xmppStreamDidDisconnect : (XMPPStream *)sender withError : (NSError *)error ;
1015
1037
0 commit comments