By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,100 Members | 2,495 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,100 IT Pros & Developers. It's quick & easy.

Twisted - Python

P: 1
Hello,

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
Share this question for a faster answer!
Share on Google+

Post your reply

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