[Twisted-Python] Multiple clients

Phil Mayers p.mayers at imperial.ac.uk
Fri Jun 18 12:46:39 EDT 2010

On 18/06/10 16:25, Szabolcs Balogh wrote:
> On Friday 18 June 2010 17:49:27 Phil Mayers wrote:
>> On 18/06/10 15:34, Szabolcs Balogh wrote:
>>>       def get_mailbox_list(self):
>>>           twisted.internet.reactor.run()
>> The reactor isn't restartable. You can only start it once.
>> _______________________________________________
>> Twisted-Python mailing list
>> Twisted-Python at twistedmatrix.com
>> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
> Than how can I start checking for messages for different accounts (When I have
> finished checking the messages for the first account to start checking for the
> next account, and so on...)?

Others have already answered this, but one way to explain it:

You don't "call the reactor" like a function. You start the reactor, and 
arrange for *it* to call *your* code in response to events.

One type of events being timer ticks.

More information about the Twisted-Python mailing list