<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Dear all,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>Happy christmas!</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I am trying to get the hang of Twisted and while the documentation is pretty clear I cannot figure out some basic things. I tried to build a little project to practise. I would love some hints, and I am not afraid to read.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Basically I want to write a simple server (Public Broker) which keeps a list of all connected clients. When one client sends a message to the server, I want the server to relay that message to other specific clients, but only those (yes basically an IM server).</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>So let's say I have a server and three clients:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-style-span"><B>server:</B> Hello, I am here!</SPAN></DIV><DIV><SPAN class="Apple-style-span"><B>client #1</B>: Yep, me too can I connect, I'm a girl?</SPAN></DIV><DIV><SPAN class="Apple-style-span"><B>server:</B> Sure, I'll add you to my clients list!</SPAN></DIV><DIV><SPAN class="Apple-style-span"><B>client #2:</B> Can I go too, I'm a guy?</SPAN></DIV><DIV><SPAN class="Apple-style-span"><B>server</B>: Yep, you are client number two on my list...</SPAN></DIV><DIV><SPAN class="Apple-style-span"><B>client #3:</B> Me too, me too, I am a guy!</SPAN></DIV><DIV><SPAN class="Apple-style-span"><B>server:</B> Fine, but now let's do some stuff...</SPAN></DIV><DIV><SPAN class="Apple-style-span"><B>client #2:</B> Server, can you please tell all clients that are girls that I'd like to see em after this session?</SPAN></DIV><DIV><SPAN class="Apple-style-span"><B>server:</B> Let's find out who are female clients in my list and send them the message. Consider it done!</SPAN></DIV><DIV><B>client #1:</B> Thanks for the message, I'll see if I have time...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>In the end client #2 would date client #1...</DIV></BODY></HTML>