Re: g_source_add_poll or g_io_add_watch in Windows?



Peter Robinson ha scritto:

For the connection I am currently using g_source_add_poll using the socket FD as returned by socket(AF_INET, SOCK_STREAM, 0). Under Windows polling does not seem to be working. If I change to using g_io_channel_win32_new_socket and g_io_add_watch then I can connect clients.
IIRC there's a different handling in win. Sockets have their own fd, but
it's not pollable...

Any suggestions?
Trash windoze :-)
Or use an abstraction library (GNet?).

BYtE,
 Diego.


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