Re: GTK + winsock
- From: "Tor Lillqvist" <tml iki fi>
- To: "Karl Schmitt" <karlschmitt1969 googlemail com>
- Cc: gtk-list gnome org
- Subject: Re: GTK + winsock
- Date: Mon, 13 Oct 2008 16:23:56 +0300
> gdk_input_add expects a file descriptor
> however as far as I know winsock has
> socket descriptors which are some how
> different to file descriptors in the Unix and Linux
> world?
Indeed. You need to go a bit lower, there is g_io_channel_unix_new()
for Unix file descriptors, and then correspondingly for Windows, for
sockets in particular, g_io_channel_win32_new_socket(). Be aware
though that there are many ways in which the behaviour of watches on
GIOChannels for sockets differ between Unix and Windows.
Unfortunately. Experiment!
--tml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]