With Twisted's TCP mechanisms, when a protocol is created, the only information about the peer is its IP address and port. How can I retrieve the original hostname that I tried to connect with?
reactor.connectTCP('somehost.com', 80, MyFactory)
How can I ever get 'somehost.com'
through a callback somehow? In other words, connectTCP
returns an IConnector
(whatever it does) - how do I correspond this to something tangible in a callback, since no deferreds are used?