Re: how to get a SOCKET from a source
- From: Diego Zuccato <diego otello alma unibo it>
- To: Tor Lillqvist <tml iki fi>, gtk-list <gtk-list gnome org>
- Cc:
- Subject: Re: how to get a SOCKET from a source
- Date: Wed, 15 Mar 2006 08:34:48 +0100
Tor Lillqvist wrote:
> It's g_io_channel_win32_get_fd(). Despite its name, it returns the
> SOCKET for GIOChannels that have been created for SOCKETs. (And for
> GIOChannels for file descriptors, it returns the file descriptor.)
Is there a reason that makes useful to have two distinct calls for
different platforms instead of a single g_io_channel_get_fd() that works
across platforms? Shouldn't Glib/Gtk/etc be ABSTRACTION libraries?
BYtE,
Diego.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]