Re: GTK + winsock
- From: Aron Rubin <aron rubin lmco com>
- To: Tor Lillqvist <tml iki fi>
- Cc: gtk-list gnome org
- Subject: Re: GTK + winsock
- Date: Tue, 14 Oct 2008 15:22:35 -0400
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 rubinium org cat /dev/brain | grep ^work:
Aron Rubin Senior Member, Engineering Staff
Lockheed Martin E-Mail: arubin atl lmco com
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]