<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div><br class="webkit-block-placeholder"></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>I've started on a test server framework. Currently, it just sends responses with a status of 0 and the extra info ``hello'' I think it's fairly extensible, though, as the backend implementation that does that looks like this:<br></div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><div> def processCommand(self, cmd, key, opaque, data):</div><div> print "Processing command %d with key ``%s'' and data ``%s''" \</div><div> % (cmd, key, data)</div><div> return 0, "Hello!"</div></div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>My repo is here:<br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><span class="Apple-tab-span" style="white-space:pre">                </span><a href="http://hg.west.spy.net/hg/python/memcached-test/">http://hg.west.spy.net/hg/python/memcached-test/</a></div> <div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Let me know if anything looks terribly wrong (I hacked this together quickly when I was supposed to doing real work). I've also got a generic binary test client that's primarily useful for telling me whether my server is doing what I expected.<br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>My goal is to write a backend implementation that implements the necessary commands and allows me to control the types of responses that my client deals with. The backend is not capable of instructing the lower level protocol handler to send garbage, but I'm hoping the normal cases are covered.<br class="webkit-block-placeholder"></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>-- </div><div>Dustin Sallings</div><br class="Apple-interchange-newline"></span> </div><br></body></html>