[Twisted-Python] Porting Apache Mina to Twisted

Umut Aydin devnetwork at gmail.com
Sun Dec 5 05:37:54 EST 2010


Hello everybody. Hope you have a good weekend.

I'm trying to port my distributed job server project to twisted but I
have a few questions.

I just tested twisted with protocol.Protocol socket handler class and
it seems like that it creates a new instance for each connection. I
want to put those connection's ip addresses into an array. Where
should I do that exactly?

How can I get ip address and port information out of self.transport.getPeer()?

That's all for now.

Thank you.

-- 
Best Regards,

Umut AYDIN
Skype: umut-aydin
Blog: http://umut.mobi



More information about the Twisted-Python mailing list