[Libevent-users] Win32 I/O completion ports code release
Gordon Scott
gscott2112 at gmail.com
Tue Dec 5 11:13:18 EST 2006
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 <newroswell at gmail.com> wrote:
>
> On 12/5/06, Toby Douglass <toby.douglass at summerblue.net> 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 at monkey.org
> http://monkey.org/mailman/listinfo/libevent-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://monkeymail.org/archives/libevent-users/attachments/20061205/e3fcc955/attachment.htm
More information about the Libevent-users
mailing list