<br>
<div><span class="gmail_quote">2008/6/2, Nick Mathewson &lt;<a href="mailto:nickm@freehaven.net">nickm@freehaven.net</a>&gt;:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Sun, Jun 01, 2008 at 01:51:53PM +0800, liusifan wrote:<br>[...]<br><br>This seems pretty promising, and could wind up being a better<br>
short-term idea than our older plan to get IOCP support by making it a<br>new backend for bufferevents.<br><br>How well tested is this?&nbsp;&nbsp;Can you get the unit tests to pass, at<br>least, to the extent that the unit tests in 1.4.4 currently pass on<br>
win32?&nbsp;&nbsp;I&#39;d like people who use libevent on windows to try this code<br>out; if it works well, we should integrate it.</blockquote>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Do you mean the uni tests in&nbsp;libevent/test directory ?</div>
<div>I will try to get these unit tests to&nbsp;pass. </div>
<div>&nbsp;</div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">(For future reference, please use unified diffs (generated with diff -u)<br>rather than old-style diffs.&nbsp;&nbsp;They&#39;re shorter and (usually) easier<br>
to read.&nbsp;&nbsp;This diff is small enough that there&#39;s not much worry<br>about this one, though.)</blockquote>
<div>&nbsp;</div>
<div>OK, will use -u option.</div>
<div>&nbsp;</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">&gt; add file : libevent-1.4.4-iocp\WIN32-Code\win32iocp.cpp<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^^^^ You mean &quot;.c&quot;?</blockquote>

<div>&nbsp;</div>
<div>Yes. Just a type mistake. It&#39;s win32iocp.c .</div>
<div>&nbsp;</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hm.&nbsp;&nbsp;This might be better applied against trunk (which will eventually<br>become libevent 2.0) than against 1.4.4; the 1.4 series is supposed to<br>
be stable, and Big New Features are usually out there...<br><br>...but now that I look at the code, it looks like the only big change<br>is to add a new backend file, which (as far as I can tell) doesn&#39;t<br>require any big changes elsewhere in the code.&nbsp;&nbsp;I&#39;d be curious to see<br>
what Niels thinks here, but I wouldn&#39;t be opposed to checking it into<br>the stable branch.</blockquote>
<div>&nbsp;</div>
<div>These some thing i need to explain here.</div>
<div>&nbsp;</div>
<div>This patch requires to add a EV_ACCEPT macro to indicate the </div>
<div>accept event. This is incompatible with the old code. The old code use</div>
<div>EV_READ to indicate the accept event. </div>
<div>&nbsp;</div>
<div>Best Regards,</div>
<div>&nbsp;</div>
<div>Stephen Liu</div></div><br>