[Twisted-Python] connectTCP() passing a ClientFactory: how to get the local port of the created client socket?
alessio.pace at gmail.com
Tue Jan 13 09:34:19 EST 2009
I'm having some difficulties in trying to figure out how to get a reference
to the connector or anyway the local port to which a client socket is bound
in a reactor.connectTCP() call, where the bindAddress is not passed as
parameter, thus letting the OS pick an available port.
In fact in the ClientFactory has a buildProtocol(self, addr) method, but
'addr' is the address of the remote endpoint of the client socket created..
Thanks in advance for any suggestion.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-Python