-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

В Пн, 01/10/2018 в 09:41 +0200, Armin Novak via FreeRDP-devel пишет:
> 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

this is not behaviour we need.
instead we need to pass fd's to some loop processor like
libev/libevent, and do all work related to one connection in signle
thread.
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEWlDDCYMF8IYr2FvNCBybLMY3dFAFAlux1TMACgkQCBybLMY3
dFAU9A/7B/uOi3GhL/sY/I7GRHKmZ+IxqIP1y5uFP2zTM7q16NixgCbKPoZNT13i
HT+MHq5UW858TPvor3YiGtbNkVDKFcDsoiQS2os8WhcvFGpLS+fg+Bef2uFB16Ls
ehxdfRHBE4Hwjq4R5BrlJIWlsKcep+uS17Vn4eIEsye63LRzyqKM+qYcJoG/grwu
GDQlO4+Du5LJZqqNZoF8jjGyshUWLB6r54CCqXTsVKjEPoBmDZSgTMpSV5K9YxKJ
xA1NYJQ9I5Hc6rWeUiHPUh3IzjjaGDQB6oFon9DHnA74N2/+XrvUDAASuCeC8Bls
ARqjRhXNWhIJbb5SO6Qvlw4LItU4Du6MZKqQZqQswk0OxCrpHVHwQc1uD78VchOM
XaXupqxz/pHvf9M1vyiIw4VyUSfFHyx1yxKQHP89294+t0dYlCVUeWoRPSoDms32
EfR+N5kuj5ZGmyy1N8p8xoabjuav/jCqttvVKAUrbw4yzSsRiMcpk44wdGTZI6bQ
AXd8geCOpYE0DGUFP6D5WhHQYVD8ZLsWdBjodYbSZiUfCpapiJovpkQ1NDLitKJX
sFEYhuBno5xAWiQwcRQR5kwL1TUYKRQF9T8gdxVw3Qib66miKXhDyumVOBiZnqq9
LlLJ4KAyHRusERIwbCBOSz04Rb5nT5U6pLEmaYeGEps7n5M6/Ec=
=cW9w
-----END PGP SIGNATURE-----



_______________________________________________
FreeRDP-devel mailing list
FreeRDP-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel

Reply via email to