Re: win32 and glib, socket data inaccessible

2005-07-01 Thread Marc Lehmann
On Fri, Jul 01, 2005 at 07:13:29AM +0200, Marc Lehmann <[EMAIL PROTECTED]> wrote: > I'll do some research. Ok, activestateperl changed sth. "recently", does it's own filehandle namespace, and exports win32_get_osfhandle, which finally returns the correct handle (and is aliases to _get_osfhandle i

Re: win32 and glib, socket data inaccessible

2005-07-01 Thread Marc Lehmann
On Fri, Jul 01, 2005 at 07:13:29AM +0200, Marc Lehmann <[EMAIL PROTECTED]> wrote: > I'll do some research. It's worse. I got Glib to build. #ifdef USE_SOCKETS_AS_HANDLES # define TO_SOCKET(x) _get_osfhandle(x) USE_SOCKETS_AS_HANDLES is defined, but _get_osfhandle simply returns

Re: win32 and glib, socket data inaccessible

2005-06-30 Thread Marc Lehmann
On Fri, Jul 01, 2005 at 07:34:56AM +0200, Marc Lehmann <[EMAIL PROTECTED]> wrote: > Digging some more, it seems one can distinguish between the two by: > > io = GvIO(gv); > if (io && IoTYPE(io) == IoTYPE_SOCKET) { Actually, why distinguish them? It's not valid to call add_watch w

Re: win32 and glib, socket data inaccessible

2005-06-30 Thread Marc Lehmann
On Fri, Jul 01, 2005 at 07:13:29AM +0200, Marc Lehmann <[EMAIL PROTECTED]> wrote: > I'll do some research. Couldn't sleep, so I did some research now instead of later. Indeed: glib expects an os handle. #ifdef USE_SOCKETS_AS_HANDLES # define TO_SOCKET(x) _get_osfhandle(x) #el

Re: win32 and glib, socket data inaccessible

2005-06-30 Thread Marc Lehmann
On Thu, Jun 30, 2005 at 10:17:15AM -0400, muppet <[EMAIL PROTECTED]> wrote: > > I am trying to port a gtk2-perl program to windows (in theory an easy > > task). > > > > However, it's using sockets, and the only way to use them in a nonblocking > > way (under Gtk2) seems to be to use glib watchers.

Re: win32 and glib, socket data inaccessible

2005-06-30 Thread Torsten Schoenfeld
On Thu, 2005-06-30 at 04:00 +0200, Marc Lehmann wrote: > [this is a repost, my original mail was held for moderation, but it seems the > list isn't actively being moderated at the moment] It is. I just don't check the queued mails every day. When I wanted to do it the last time, the gnome.org s

Re: win32 and glib, socket data inaccessible

2005-06-30 Thread muppet
Marc Lehmann said: > > I am trying to port a gtk2-perl program to windows (in theory an easy > task). > > However, it's using sockets, and the only way to use them in a nonblocking > way (under Gtk2) seems to be to use glib watchers. Now, the problem is > that, when my callback gets called, glib h

win32 and glib, socket data inaccessible

2005-06-30 Thread Marc Lehmann
[this is a repost, my original mail was held for moderation, but it seems the list isn't actively being moderated at the moment] Hi! I am trying to port a gtk2-perl program to windows (in theory an easy task). However, it's using sockets, and the only way to use them in a nonblocking way (under