<div>AcceptEx works great.</div>
<div>THe cool thing is that you can pre-create a pool of sockets waiting for connection. When a socket is connected you'll get an event from GQCS call.</div>
<div> </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> </div>
<div><span class="gmail_quote">On 12/5/06, <b class="gmail_sendername">Kevin Sanders</b> <<a href="mailto:newroswell@gmail.com">newroswell@gmail.com</a>> 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 <<a href="mailto:toby.douglass@summerblue.net">toby.douglass@summerblue.net</a>
> wrote:<br>> >> The docs say the following functions can be used with an IOCP;<br>> >><br>> >> ConnectNamedPipe<br>> >> DeviceIoControl<br>> >> LockFileEx<br>> >> ReadDirectoryChangesW
<br>> >> ReadFile<br>> >> TransactNamedPipe<br>> >> WaitCommEvent<br>> >> WriteFile<br>><br>> > Use AcceptEx.<br>><br>> The docs sayeth;<br>><br>> "The following functions can be used to start I/O operations that complete
<br>> using completion ports."<br>><br>> (And then the above list is given).<br>><br>> This to me means that it is these and only these functions which can be<br>> used with IOCP, which in turn means having an overlapped structure doesn't
<br>> automatically mean you can use that function with an IOCP.<br>><br>> Have you used AcceptEx() with an IOCP and found it works?<br><br>Of course I have. 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>