471,354 Members | 1,534 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

Twisted - Python


I am quite new to python and twisted and I am sure that there is a quick simple answer to my question.
Is it possible to force a loseConnection() ?

For example, I have created a protocol called myProtocol and a factory called myFactory. I am using self.factory.deferred.callback(mydefer) in myProtocol.

Upon success, I have a handleSuccess(result) event handler. all it does is print result. I need it to somehow force a loseConnection.

Can anyone help me with this?
I can post my code if necessary.

Thank you in advance
Nov 12 '07 #1
0 880

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Paul Moore | last post: by
1 post views Thread by Fazer | last post: by
11 posts views Thread by mir nazim | last post: by
1 post views Thread by marchew | last post: by
6 posts views Thread by Kartic | last post: by
reply views Thread by jgarber | last post: by
reply views Thread by huisan.wang | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.