[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



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