Re: GTK + winsock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tor Lillqvist wrote:
>> 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!

However winsock sockets are a lot closer to unix than file handling.
i.e. select() only works in winsock.

Aron

-- 

ssh aron@xxxxxxxxxxxx cat /dev/brain | grep ^work:

Aron Rubin                       Senior Member, Engineering Staff
Lockheed Martin                  E-Mail: arubin@xxxxxxxxxxxx
Advanced Technology Laboratories Phone:  856.792.9865
3 Executive Campus               Fax:    856.792.9930
Cherry Hill, NJ USA 08002        Web:    http://www.atl.lmco.com
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux