RE: [Twisted-Python] A tcp server that handles many connections

I just have a general question using python. It is possible that a python script will be a XmlRPC server on the port 5555 and at the same time a tcp-server on the port 6666 ? If yes. What I have to do to do a such thing ?
Thanks,
Thomas
-----Original Message----- From: twisted-python-bounces@twistedmatrix.com [mailto:twisted-python-bounces@twistedmatrix.com] On Behalf Of Deillon Thomas-WTD008 Sent: 19 May 2006 14:16 To: Twisted general discussion Subject: RE: [Twisted-Python] A tcp server that handles many connections
Ok, thanks to both of you
Thomas
-----Original Message----- From: twisted-python-bounces@twistedmatrix.com [mailto:twisted-python-bounces@twistedmatrix.com] On Behalf Of Andrew Bennetts Sent: 19 May 2006 14:08 To: Twisted general discussion Subject: Re: [Twisted-Python] A tcp server that handles many connections
On Fri, May 19, 2006 at 12:58:34PM +0200, Johann Borck wrote: [...]
and if you're looking for "real world" apps using twisted... uups can't find that page right now (does it still exist?) ahem, look at divmod.org :)
You're probably thinking of this: http://twistedmatrix.com/trac/wiki/ProjectsUsingTwisted
And maybe this: http://twistedmatrix.com/trac/wiki/SuccessStories
-Andrew.
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

On Fri, 19 May 2006 14:28:04 +0100, Deillon Thomas-WTD008 wtd008@motorola.com wrote:
I just have a general question using python. It is possible that a python script will be a XmlRPC server on the port 5555 and at the same time a tcp-server on the port 6666 ? If yes. What I have to do to do a such thing ?
Actually this isn't a general Python question. Here's how you do it with Twisted:
reactor.listenTCP(5555, XMLRPCFactory) reactor.listenTCP(6666, SomeOtherFactory)
You may want to look at the writing servers document:
http://twistedmatrix.com/projects/core/documentation/howto/servers.html
This is linked from one of the documentation pages on Twisted's website:
http://twistedmatrix.com/projects/core/documentation/howto/index.html
Jean-Paul
participants (2)
-
Deillon Thomas-WTD008
-
Jean-Paul Calderone