No subject


Sun Apr 26 08:47:01 EDT 2009


requests and have the server reply for each request.
So, for example: if the client sends "Hello!", the server will reply :
"Hello, [ip address of client]".
But my point is: I can handle the communication between 1 server and 1
client only, but how Can I do if I have multiple clients connected?
My objective is: I have 4 clients connected, and I want the server to send a
data to only one specific client (I will provide the ip address and port for
this specific client)
I imagine that The correct way to do this is: having one thread for each
client connection, and calling that specific thread to write down a message,
am I correct?

Does someone has an example on how can I do that?

Thanks in advance,

Renan Mathias Fernandes





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

--001485f7c50e6a60310480c27093
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<p>Hi Renan:</p>
<p>I asked almost the same question a few weeks ago.=A0 Look at<br>
<a href=3D"http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#Howd=
oImakeinputononeconnectionresultinoutputonanother">http://twistedmatrix.com=
/trac/wiki/FrequentlyAskedQuestions#HowdoImakeinputononeconnectionresultino=
utputonanother</a></p>

<p>The factory can access a list of the connections.</p>
<p>Mark</p>
<p><blockquote type=3D"cite">On Mar 1, 2010 2:24 PM, &quot;Renan Mathias Fe=
rnandes&quot; &lt;<a href=3D"mailto:renan at renanfernandes.org">renan at renanfe=
rnandes.org</a>&gt; wrote:<br><br>Hello,<br>
<br>
I am trying to learn about Twisted Matrix, and for that I am modifying the =
Echo Client &amp; Server example to archive few goals:<br>


More information about the Twisted-Python mailing list