[Twisted-Python] Multiple clients
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):
>> The reactor isn't restartable. You can only start it once.
>> Twisted-Python mailing list
>> Twisted-Python at twistedmatrix.com
> 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