AcceptEx works great.
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.

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.


On 12/5/06, Kevin Sanders <[EMAIL PROTECTED]> wrote:

On 12/5/06, Toby Douglass <[EMAIL PROTECTED]> wrote:
> >> The docs say the following functions can be used with an IOCP;
> >>
> >> ConnectNamedPipe
> >> DeviceIoControl
> >> LockFileEx
> >> ReadDirectoryChangesW
> >> ReadFile
> >> TransactNamedPipe
> >> WaitCommEvent
> >> WriteFile
>
> > Use AcceptEx.
>
> The docs sayeth;
>
> "The following functions can be used to start I/O operations that
complete
> using completion ports."
>
> (And then the above list is given).
>
> This to me means that it is these and only these functions which can be
> used with IOCP, which in turn means having an overlapped structure
doesn't
> automatically mean you can use that function with an IOCP.
>
> Have you used AcceptEx() with an IOCP and found it works?

Of course I have.  ConnectEx works great also.
_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkey.org/mailman/listinfo/libevent-users

_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkey.org/mailman/listinfo/libevent-users

Reply via email to