[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: GIO channels and "connection closed by foreign host" on WIN32
- From: Tor Lillqvist <tml iki fi>
- To: Gabriele Greco <gabriele greco darts it>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GIO channels and "connection closed by foreign host" on WIN32
- Date: Wed, 18 Mar 2009 12:19:41 +0200
> Why? The only real problem was the fact the cbk was void.
Well, you were lucky;) In more complex use cases, there are many ways
in which the behavior of GIOChannels for sockets, and watches for
them, behave differently on Unix and Windows.
> GIOChannel API give the user a g_io_channel_unix_get_fd() call,
Yes. That (and the fact that opening the socket (fd) is the
responsibility of user code) is a problem in this API. That means GLib
has no control or knowledge of exactly how the socket is created, and
what all the user code does with it.
--tml
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]