On Feb 12, 2008 3:02 PM, Noam Raphael <<a href="mailto:noamraph@gmail.com">noamraph@gmail.com</a>> 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'll just use Python's plain socket, since I<br>don't intend to serve more than one request at a time. I also don't<br>really need to use SSL, since my two computers can have a pre-shared<br>
secret. Here'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. And you'd have the benefits of a number of things your program doesn'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>\\\\\/\"/\\\\\\\\\\\<br>\\\\/ // //\/\\\\\\\<br>\\\/ \\// /\ \/\\\\<br>\\/ /\/ / /\/ /\ \\\<br>\/ / /\/ /\ /\\\ \\<br>/ /\\\ /\\\ \\\\\/\<br>\/\\\\\/\\\\\/\\\\\\<br> d.p.s