Re: g_io_channel_win32_poll() Problem on Windows

2017-08-02 Thread LRN
On 8/2/2017 7:37 PM, LRN wrote: > On 7/27/2017 1:51 PM, mualloc . wrote: >> arv_gv_discover_socket_list_send_discover_packet(socket_list); >> >> >> do{ >> >> #ifdef_WIN32 >> >> // g_io_channel_win32_make _pollfd() documentation says call this >> >>

Re: g_io_channel_win32_poll() Problem on Windows

2017-08-02 Thread LRN
On 7/27/2017 1:51 PM, mualloc . wrote: > arv_gv_discover_socket_list_send_discover_packet(socket_list); > > > do{ > > #ifdef_WIN32 > > // g_io_channel_win32_make _pollfd() documentation says call this > >

Re: g_io_channel_win32_poll() Problem on Windows

2017-07-28 Thread LRN
On 7/28/2017 3:08 PM, Paul Davis wrote: > > > On Fri, Jul 28, 2017 at 4:37 AM, LRN wrote: >> After trying this myself (for unrelated reasons), i found that *only* >> giochannel GSource does WSAEventSelect() on a socket event (in >> g_io_win32_prepare()) to bind it to an event handle, which can

Re: g_io_channel_win32_poll() Problem on Windows

2017-07-28 Thread Paul Davis
On Fri, Jul 28, 2017 at 4:37 AM, LRN wrote: > > > After trying this myself (for unrelated reasons), i found that *only* > giochannel GSource does WSAEventSelect() on a socket event (in > g_io_win32_prepare()) to bind it to an event handle, which can then be > polled. > If you

Re: g_io_channel_win32_poll() Problem on Windows

2017-07-28 Thread LRN
On 7/27/2017 2:56 PM, LRN wrote: > On 7/27/2017 2:06 PM, Faik wrote: > >> As you might guess, in  arv_gv_discover_socket_list_new() function,  GPollFDs >> are created and in _discover() function, a broadcast message is sent and then >>  polled for reply. but no luck, still in _discover(), it time

Re: g_io_channel_win32_poll() Problem on Windows

2017-07-27 Thread LRN
On 7/27/2017 2:06 PM, Faik wrote: > arv_gv_discover_socket_list_send_discover_packet(socket_list); > > do{ > > #ifdef_WIN32 > > // g_io_channel_win32_make _pollfd() documentation says call this > >

g_io_channel_win32_poll() Problem on Windows

2017-07-27 Thread Faik
Hi, I am trying to port a Linux application to Windows that highly depends on GLib. I compiled GLib with MSVC 2015. The application uses g_poll() in a place. In g_poll() GNOME documentation, it states that If you need to use |g_poll()|