Re: [Twisted-Python] Multiple clients

2010-06-18 Thread Szabolcs Balogh
On Friday 18 June 2010 20:25:50 Itamar Turner-Trauring wrote: > > It sounds good, but if I don't call reactor.run() after connectSSL > > doesn't happens anything... If I call reactor.run() after connectSSL, it > > works properly... > > There are two types of client connections: > > 1. Connections

Re: [Twisted-Python] Multiple clients

2010-06-18 Thread Szabolcs Balogh
On Friday 18 June 2010 19:24:54 Glyph Lefkowitz wrote: > This is actually a FAQ: > > tedtalktomultipleclientsconnecttomultipleservers> > "Sometimes people ask this question when they write a function that calls connect

Re: [Twisted-Python] Multiple clients

2010-06-18 Thread Szabolcs Balogh
On Friday 18 June 2010 19:24:54 Glyph Lefkowitz wrote: > On Jun 18, 2010, at 8:25 AM, Szabolcs Balogh wrote: > > 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

Re: [Twisted-Python] Multiple clients

2010-06-18 Thread Szabolcs Balogh
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.

Re: [Twisted-Python] Multiple clients

2010-06-18 Thread Szabolcs Balogh
I have used the following code, which is working until I called it multiple time: class ImapProtocol(twisted.mail.imap4.IMAP4Client): ... implementation ... class ImapFactory(twisted.internet.protocol.ClientFactory): def __init__(self, account): self.accou