[Twisted-Python] Catch clientConnectionLost in a Factory

2014-12-04 Thread Grigorescu Ciprian
Hello, I have a small problem. I using SMTPClient and ClientFactory in order to send emails. I have something like:observer['workers'] = total mails to send(connections)         def got_result(*args):     observer['results'] += 1     def got_error(err):     observer['errors'] += 1

[Twisted-Python] Using spawnProcess

2014-09-01 Thread Grigorescu Ciprian
Hello, I have wrote a custom protocol(inherit from SMTPClient) and factory(inherit from ClientFactory) in order to send emails from multiple ips(multiple connections, factories). Now I want to run this pice of code multiple times using spawnProcess to send emails simultaneous, each process havi

[Twisted-Python] Create a NAT rule from twsited

2014-04-16 Thread Grigorescu Ciprian
Hello, Is there a way to create a NAT rule from twisted? I need to route a private ip to a public ip from a twisted script. Thank You, Ciprian ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/

Re: [Twisted-Python] Using twisted for a smtp dialog

2014-04-02 Thread Grigorescu Ciprian
ave a look at the smtpclient docs...that should get you most of the way there.  http://twistedmatrix.com/documents/current/mail/tutorial/smtpclient/smtpclient.html On Wed, Apr 2, 2014 at 9:03 AM, Grigorescu Ciprian wrote: Hello, > >I am new in twisted world and I am struggle to unde

[Twisted-Python] Using twisted for a smtp dialog

2014-04-02 Thread Grigorescu Ciprian
Hello, I am new in twisted world and I am struggle to understand it. I am trying to create a smtp connection and initiate a smtp dialog: helo, mail from, rcpt, for a list of address, and catch the answer from the smtp server Can anyone point me the right direction, where to start? Thanks a lot,