Windows Compilation problem
schmorp at schmorp.de
Thu Jun 5 10:23:32 CEST 2008
On Wed, Jun 04, 2008 at 04:29:46PM -0700, Matt Tolton <matt at tolton.com> wrote:
> Any pointers here? The fd that I'm using is a socket obtained from
> the winsock socket() call. Here is the code used to initialize it:
That doesn't work - the libev API requires file descriptors on all
platforms. What you pass in is a native opertaing system handle that is
not a file descriptor.
You have to convert the os handle into a file descriptor first (there
is some runtime library function for that whose name escapes me at the
moment, search the list archives or msdn).
in general, just keep in mind that the API is the same on windows and
portable operating systems.
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / pcg at goof.com
More information about the libev