[Twisted-Python] Bad inconsistency with buildProtocol
itamar at itamarst.org
Thu Jun 19 12:51:12 EDT 2003
On Thu, 19 Jun 2003 00:18:33 -0400
Pavel Pergamenshchik <pp64 at cornell.edu> wrote:
> It looks like buildProtocol gets passed inconsistent values for addr.
> In a program that connects to itself: pahan at dunce:~/Twisted$ python
> echo.py EchoServerFactory from ('127.0.0.1', 43044)
> EchoClientFactory to ('INET', 'localhost', 8000)
> For incoming connections, addr gets passed straight from
> <socketobj>.accept, which is not in the proper format.
Shit. Suggestions for how to fix this? I'm thinking a class with
__getitem__ and __len__ for backwards compatability and attributes as
the correct way of getting stuff?
Itamar Shtull-Trauring http://itamarst.org/
http://www.zoteca.com -- Python & Twisted consulting
More information about the Twisted-Python