<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>AW: [Libevent-users] win32 iocp patch for libevent main trunk</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hi Stephen Liu,<BR>
<BR>
&gt; The changes are:<BR>
&gt; 2.Add EV_ACCEPT flag for accept event ( in include\event.h )<BR>
&gt;&nbsp; #define EV_ACCEPT&nbsp;&nbsp; 0x40<BR>
<BR>
I like your work that you have put into this. Keep on the good work!<BR>
But what I don't like is the new EV_ACCEPT flag.<BR>
<BR>
Have you thought about detecting somehow if a socket is a listen socket? I just browsed msdn to find a way. Looks like getsockopt(SO_ACCEPTCONN) can be used for this task. Sorry, but can't test it right now.<BR>
<BR>
If your are able to use iocp without a change in the interface everyone will benefit without changing their code. This would be a huge win.<BR>
<BR>
<BR>
&nbsp;&nbsp; Jörg<BR>
</FONT>
</P>

</BODY>
</HTML>