dbus performance information
lrn1986 at gmail.com
Thu Mar 20 17:32:37 PDT 2014
-----BEGIN PGP SIGNED MESSAGE-----
On 21.03.2014 0:25, David Zeuthen wrote:
> On Thu, Mar 20, 2014 at 12:11 PM, Simon McVittie wrote:
>> but that reimplementation wouldn't necessarily look much like
>> D-Bus any more.
> The implementation I sketched above (D-Bus + win32-HANDLE-passing)
> would look as much as D-Bus as D-Bus + unix-fd-passing does. But,
> sure, the program would need to have #ifdefs for whether to use
> GUnixFDList or GWin32HandleList.
Why not just re-use the unix-fd-passing interface for CRT FDs?
I mean, you can _get_osfhandle() on a FD, pass the handle, then
_open_osfhandle() on the other end, and pretend that the FD you get
from it actually came like that. It will not have the same value as
the original (and duping it may not always work if it's already
taken), but otherwise it should work. More importantly, it will have
the same interface as UNIX fd passing.
Not that there shouldn't be a W32-specific interface, mind you.
O< ascii ribbon - stop html email! - www.asciiribbon.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
-----END PGP SIGNATURE-----
More information about the dbus