On Wed, Jun 04, 2008 at 04:29:46PM -0700, Matt Tolton <[EMAIL PROTECTED]> 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
      --==---/ / _ \/ // /\ \/ /      [EMAIL PROTECTED]
      -=====/_/_//_/\_,_/ /_/\_\

_______________________________________________
libev mailing list
libev@lists.schmorp.de
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to