[Twisted-Python] Is it possible to write a tcp app which behaves like both client and server?

Eric Hsu nkeric at gmail.com
Tue Jun 28 08:36:40 EDT 2005

Hi all!

Sorry for my poor english, I'll try to express myself clearly :p

I need to implement something like this:

 * it listens on a port 12345 for only one incoming connection if
there is currently no connection
 * it can also connect to other host from that port (12345) if there
is currently no connection

Or: Could I write a server which can connect (from the port it's
listening on) to another known server?

Could these be done with twisted?

Any infomatin would be warmly welcome, big thanks!

- Eric

More information about the Twisted-Python mailing list