On 6/20/07, <b class="gmail_sendername">Delgado, Edgardo  CIV NAVAIR <a href="http://4.1.4.3">4.1.4.3</a></b> &lt;<a href="mailto:edgardo.delgado@navy.mil">edgardo.delgado@navy.mil</a>&gt; wrote:<div><span class="gmail_quote">
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I would like to build a server that when it gets a message on a specific<br>port it will &quot;forward&quot; that message to another port.
<br>I.e. &quot;Server1&quot; listens on port 10000. When it gets data on port 10000 it<br>will forward the data to &quot;Server2&quot; listening on port 15000.</blockquote><div><br>Assuming you&#39;re using TCP, you could just create a server listening on a port using 
reactor.listenTCP(port, factory) as detailed <a href="http://twistedmatrix.com/projects/core/documentation/howto/servers.html">here</a> and when you receive a message you would create a client using reactor.connectTCP(host, port, factory) as detailed 
<a href="http://twistedmatrix.com/projects/core/documentation/howto/clients.html">here</a> to then send the message.<br><br>Cheers,<br>Christian<br></div></div>