<div>AcceptEx works great.</div>
<div>THe cool thing is that you can pre-create a pool of sockets waiting for connection.&nbsp; When a socket is connected you'll get an event from GQCS call.</div>
<div>&nbsp;</div>
<div>Typically I create about 20 at a time..when I get down to about 5 or so remaining I use AcceptEx to queue up another batch of sockets waiting to be connected.<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 12/5/06, <b class="gmail_sendername">Kevin Sanders</b> &lt;<a href="mailto:newroswell@gmail.com">newroswell@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On 12/5/06, Toby Douglass &lt;<a href="mailto:toby.douglass@summerblue.net">toby.douglass@summerblue.net</a>
&gt; wrote:<br>&gt; &gt;&gt; The docs say the following functions can be used with an IOCP;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; ConnectNamedPipe<br>&gt; &gt;&gt; DeviceIoControl<br>&gt; &gt;&gt; LockFileEx<br>&gt; &gt;&gt; ReadDirectoryChangesW
<br>&gt; &gt;&gt; ReadFile<br>&gt; &gt;&gt; TransactNamedPipe<br>&gt; &gt;&gt; WaitCommEvent<br>&gt; &gt;&gt; WriteFile<br>&gt;<br>&gt; &gt; Use AcceptEx.<br>&gt;<br>&gt; The docs sayeth;<br>&gt;<br>&gt; &quot;The following functions can be used to start I/O operations that complete
<br>&gt; using completion ports.&quot;<br>&gt;<br>&gt; (And then the above list is given).<br>&gt;<br>&gt; This to me means that it is these and only these functions which can be<br>&gt; used with IOCP, which in turn means having an overlapped structure doesn't
<br>&gt; automatically mean you can use that function with an IOCP.<br>&gt;<br>&gt; Have you used AcceptEx() with an IOCP and found it works?<br><br>Of course I have.&nbsp;&nbsp;ConnectEx works great also.<br>_______________________________________________
<br>Libevent-users mailing list<br><a href="mailto:Libevent-users@monkey.org">Libevent-users@monkey.org</a><br><a href="http://monkey.org/mailman/listinfo/libevent-users">http://monkey.org/mailman/listinfo/libevent-users</a>
<br></blockquote></div><br>