I mean some kind of a command from the server to trigger the cleanup of the client. For example: on some cases in our xmpp server, when a currently logged in user logged in again with using the same account from a different location; we forcefully close the last session by first sending a stream document end to the client (&quot;&lt;/stream&gt;&quot;) before doing a transport.loseConnection(). Our client then triggers the cleanup procedure upon receiving &lt;/stream&gt; from the server. I haven&#39;t tried my hands on twisted.spread yet but you could implement something like this. :)<br>
<br><br><br><div class="gmail_quote">On Wed, May 21, 2008 at 12:09 AM, Patrick Scharrenberg &lt;<a href="mailto:pittipatti@web.de">pittipatti@web.de</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Alvin,<br>
<br>
Thanks for your answer!<br>
<div class="Ih2E3d"><br>
&gt; If you want your client to do a certain routine when the server shuts<br>
&gt; him down, you could send a custom message to the client first that will<br>
&gt; trigger some cleanup procedure you have in your client.<br>
<br>
</div>Yes indeed I have to do some cleanup first.<br>
What do you mean with &quot;send a custom message&quot;?<br>
<div><div></div><div class="Wj3C7c"><br>
Patrick<br>
<br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.alvinatorsplayground.blogspot.com/">http://www.alvinatorsplayground.blogspot.com/</a>