Re: [Twisted-Python] Getting local UDP address/port

2009-11-14 Thread Olivier Parisy
exar...@twistedmatrix.com a écrit : > The protocol's transport will give you this information via the getHost > method: > > http://twistedmatrix.com/documents/current/api/twisted.internet.interfaces.IUDPTransport.html > I got confused by the method name and did not think it would provide me wi

Re: [Twisted-Python] Getting local UDP address/port

2009-11-14 Thread exarkun
On 03:02 pm, olivier.par...@free.fr wrote: >I am implementing a UDP protocol where a request is sent to a server >through a connected UDP transport. > >I listen for the answer using reactor.listenUDP(0, myDatagramProtocol). > >The local port is not in itself significant (hence the 0), but the >prot

[Twisted-Python] Getting local UDP address/port

2009-11-14 Thread Olivier Parisy
I am implementing a UDP protocol where a request is sent to a server through a connected UDP transport. I listen for the answer using reactor.listenUDP(0, myDatagramProtocol). The local port is not in itself significant (hence the 0), but the protocol require that I get the local IP address and