On Feb 12, 2008 3:02 PM, Noam Raphael &lt;<a href="mailto:noamraph@gmail.com">noamraph@gmail.com</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks all!<br><br>I think that at the end, I&#39;ll just use Python&#39;s plain socket, since I<br>don&#39;t intend to serve more than one request at a time. I also don&#39;t<br>really need to use SSL, since my two computers can have a pre-shared<br>
secret. Here&#39;s what I wrote - tell me what you think!<br></blockquote><div><br>I think you could have written the equivalent program in less lines of code using facilities provided by Twisted.&nbsp; And you&#39;d have the benefits of a number of things your program doesn&#39;t provide including:<br>
<br>* transport/protocol separation<br>* ability to handle multiple clients efficiently<br><br>It is not my area expertise by any means, but shared-secret message hashing is a rather crude (read : easy to sniff and replay traffic) security mechanism.<br>
<br>Cheers,<br></div></div><br>-- <br>\\\\\/\&quot;/\\\\\\\\\\\<br>\\\\/ // //\/\\\\\\\<br>\\\/ &nbsp;\\// /\ \/\\\\<br>\\/ /\/ / /\/ /\ \\\<br>\/ / /\/ /\ &nbsp;/\\\ \\<br>/ /\\\ &nbsp;/\\\ \\\\\/\<br>\/\\\\\/\\\\\/\\\\\\<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; d.p.s