Re: win32 and glib, socket data inaccessible

On Fri, Jul 01, 2005 at 07:13:29AM +0200, Marc Lehmann <gtk-perl schmorp de> wrote:
I'll do some research.

It's worse. I got Glib to build.

   #       define TO_SOCKET(x)     _get_osfhandle(x)

USE_SOCKETS_AS_HANDLES is defined, but _get_osfhandle simply returns -1
for the socket fd I pass in. Now, both fstat and the getsockname test
return true (but I don't see the warning in the code being output on the
console, so maybe glib is linked against a different getsockname? I use the
glib from

When I pass in the fd directly to g_io_channel_win32_new_socket, the
callback is never being called (despite data being ready).

So (activestate-)perl seems to have an entirely different idea of "file
descriptor" then both MSVCRT and glib.

(I wouldn't care for activestate perl, but I can't see the alternatives,
as I am unable to build gtk+ with win32 backend in cygwin and the
only perl thats compatible with the native win32 build seems to be

                The choice of a
      -----==-     _GNU_
      ----==-- _       generation     Marc Lehmann
      ---==---(_)__  __ ____  __      pcg goof com
      --==---/ / _ \/ // /\ \/ /
      -=====/_/_//_/\_,_/ /_/\_\      XX11-RIPE
gtk-perl-list mailing list
gtk-perl-list gnome org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]