Re: GTK + winsock



> 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]