[Twisted-Python] How to listen on and connect from same TCP port with Twisted?

2009-01-09 Thread Alessio Pace
Hi, I would lilke tro listen on a given TCP port and initiate multiple TCP client connections from the same port, but I'm encountering the classical: : Couldn't bind: 98: Address already in use My code is: ## factory = Factory() # an almost empy su

Re: [Twisted-Python] How to listen on and connect from same TCP port with Twisted?

2009-01-09 Thread Alvin Delagon
You shouldn't bind your client on a port where your server is listening to. --- Alvin On Fri, Jan 9, 2009 at 9:23 PM, Alessio Pace wrote: > Hi, > > I would lilke tro listen on a given TCP port and initiate multiple TCP > client connections from the same port, but I'm encountering the classical:

Re: [Twisted-Python] How to listen on and connect from same TCP port with Twisted?

2009-01-09 Thread Alessio Pace
On Fri, Jan 9, 2009 at 3:01 PM, Alvin Delagon wrote: > You shouldn't bind your client on a port where your server is listening to. I'm following what is written in "Peer-to-Peer Communication Across Network Address Translators" in order to implement TCP hole punching, and they suggested to do s

Re: [Twisted-Python] How to listen on and connect from same TCP port with Twisted?

2009-01-09 Thread Jean-Paul Calderone
On Fri, 9 Jan 2009 15:13:10 +0100, Alessio Pace wrote: On Fri, Jan 9, 2009 at 3:01 PM, Alvin Delagon wrote: You shouldn't bind your client on a port where your server is listening to. I'm following what is written in "Peer-to-Peer Communication Across Network Address Translators" in order t

[Twisted-Python] [Q] Naming Service for Twisted Servers

2009-01-09 Thread V S P
Hi, I am sorry I am reasking the same question I asked before (but I did not get any replies) Basically wanted to know -- for running Twisted on multiple servers is there such a thing as a "Naming" server that would register all the currently running twisted servers -- so that asynchronious eve

Re: [Twisted-Python] [Q] Naming Service for Twisted Servers

2009-01-09 Thread glyph
On 9 Jan, 09:42 pm, torea...@fastmail.fm wrote: Hi, I am sorry I am reasking the same question I asked before (but I did not get any replies) Basically wanted to know -- for running Twisted on multiple servers is there such a thing as a "Naming" server that would register all the currently runni

Re: [Twisted-Python] [Q] Naming Service for Twisted Servers

2009-01-09 Thread Jarrod Roberson
2009/1/9 V S P > Hi, > I am sorry I am reasking the same question I asked before > (but I did not get any replies) > > Basically wanted to know -- for running Twisted on multiple servers > > is there such a thing as a "Naming" server that > would register all the currently running twisted servers

Re: [Twisted-Python] [Q] Naming Service for Twisted Servers

2009-01-09 Thread V S P
Thank you for the replies. Wanted to make sure I was not missing a 'twisted goodie' What is ZeroConf? Can you please point me to the project page (I searched for some but did not find something twisted/python specific). my client will be a program that reads rows of 'requests' from the database