Re: how to get a SOCKET from a source
- From: Tor Lillqvist <tml iki fi>
- To: Rick Jones <rick jones2 hp com>
- Cc: gtk-list gnome org
- Subject: Re: how to get a SOCKET from a source
- Date: Wed, 15 Mar 2006 01:34:41 +0200
Rick Jones writes:
> #ifdef G_OS_WIN32
> /* what is the call here? */
> #else
> listen_socket = g_io_channel_unix_get_fd(source);
> #endif
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.)
--tml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]