Look at the sample client: nCount = freerdp_get_event_handles(instance->context, &handles[0], 64); status = WaitForMultipleObjects(nCount, handles, FALSE, 100);
freerdp_check_event_handles(instance->context) That basically collects all event sources and waits for an object to trigger. (Note, if you want to reduce the load, make the 100ms timeout INFINITE) Handling the events is done by freerdp_check_event_handles best Armin On 10/1/18 9:25 AM, Alexandr via FreeRDP-devel wrote: > В Пн, 01/10/2018 в 09:04 +0200, Armin Novak via FreeRDP-devel пишет: > > Hi Alexandr, > > > > currently there are no dynamic changes of handles (note, the *_fds > > functions are deprecated just as the dfreerdp client - due to lack of > > a > > maintainer) > > > but that might change therefore the process is repeated before each > > wait. > > > > best > > > Armin > > > On 9/29/18 1:30 AM, Alexandr via FreeRDP-devel wrote: > >> hi all. > >> in "client/DirectFB/dfreerdp.c" i found what "freerdp_get_fds" and > >> "freerdp_channels_get_fds" used to get fd's for select, but in each > >> iteration they called again for new fd's, also i have checked under > >> debugger, and they does not changing during session. > >> My question is it necessary to get new fd's via "freerdp_get_fds" > >> and > >> "freerdp_channels_get_fds" each time after calling > >> "freerdp_check_fds" > >> and "freerdp_channels_check_fds" or i can get fd's one time only ? > >>>>> _______________________________________________ > FreeRDP- > >>>>> devel > > mailing list > FreeRDP-devel@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/freerdp-devel > > > > _______________________________________________ > > FreeRDP-devel mailing list > > FreeRDP-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/freerdp-devel > > Understood. > So if fd's functions is deprecated, what should i sue instead ? > > > > > _______________________________________________ > FreeRDP-devel mailing list > FreeRDP-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freerdp-devel _______________________________________________ FreeRDP-devel mailing list FreeRDP-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freerdp-devel