[Twisted-Python] delivering application

Andrew Bennetts andrew-twisted at puzzling.org
Thu Oct 23 22:53:35 EDT 2003

On Thu, Oct 23, 2003 at 10:47:31PM -0400, Yun Mao wrote:
> What I did is add a bind to interface support to the connectTCP method.  
> Do you feel it's useful?
> For example, 
> reactor.connectTCP ( self.remotehost, self.remoteport, 
>                             sfactory, self.timeout, None, self.interface)
> where self.interface='eth1'
> This only works on Linux..

There's already a bindAddress optional argument that you could possibly use
for this (and it's cross-platform)... I'm guessing there's some reason why
you need to bind the local side by device rather than by IP address?


More information about the Twisted-Python mailing list