Re: RFC: adding fd-passing to win32

Thiago Macieira <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <6412326.G0QQBjFxQf@tjmaciei-mobl5>
On Friday, 5 August 2022 00:35:54 PDT Marc-André Lureau wrote:
> As you probably know, HANDLEs are not FD. And Windows has the 2 types, and
> functions to map to/from the 2 (_get_osfhandle/_open_osfhandle).

There's no way to transport file descriptors as numbers anyway because they're 
local to each application. And on Windows, it's entirely controlled by the 
runtime (userspace), which is why those two functions exist.

That means the wire format is irrelevant. I suggest keeping 'h' because 
there's no difference. The fact that on Windows they're marshalled as actual 
handles and on Linux they're out-of-band is an implementation detail.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.