[Twisted-Python] Server/Client

Delgado, Edgardo CIV NAVAIR 4.1.4.3 edgardo.delgado at navy.mil
Thu Jun 28 09:00:49 EDT 2007


I already took a look at UDP, but we need data reliability so can't use
UDP. :-(

Thx,
Edgar

-----Original Message-----
From: twisted-python-bounces at twistedmatrix.com
[mailto:twisted-python-bounces at twistedmatrix.com] On Behalf Of Alvin
Delagon
Sent: Wednesday, June 27, 2007 9:55 PM
To: Twisted general discussion
Subject: Re: [Twisted-Python] Server/Client

Suggestion:

If data reliability is not an issue, it's pretty much easier to do it
using UDP (twisted.internet.protocol.DatagramProtocol). You won't need
to deal with connections. 

"What I need is a 1:many relationship, i.e. listen on one port and
forwarding to many ports."

A UDP MulticastServer is what you need. ^_^


On 6/28/07, Delgado, Edgardo CIV NAVAIR 4.1.4.3
<edgardo.delgado at navy.mil> wrote:

	OK, I got the portforwarding stuff done using
protocols.portforward.
	But this is good for 1:1 relationship, i.e. listen on one port
and
	forwarding to another.
	What I need is a 1:many relationship, i.e. listen on one port
and 
	forwarding to many ports.
	
	Edgar
	
	-----Original Message-----
	From: twisted-python-bounces at twistedmatrix.com
	[mailto: twisted-python-bounces at twistedmatrix.com
<mailto:twisted-python-bounces at twistedmatrix.com> ] On Behalf Of
Delgado,
	Edgardo CIV NAVAIR 4.1.4.3
	Sent: Wednesday, June 20, 2007 10:16 AM
	To: twisted-python at twistedmatrix.com
<mailto:twisted-python at twistedmatrix.com> 
	Subject: [Twisted-Python] Server/Client
	
	I would like to build a server that when it gets a message on a
specific
	port it will "forward" that message to another port. 
	I.e. "Server1" listens on port 10000. When it gets data on port
10000 it
	will forward the data to "Server2" listening on port 15000.
	
	Edgar
	
	
	_______________________________________________ 
	Twisted-Python mailing list
	Twisted-Python at twistedmatrix.com
	http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

	
	_______________________________________________
	Twisted-Python mailing list
	Twisted-Python at twistedmatrix.com
	http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
<http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python> 
	






More information about the Twisted-Python mailing list