bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: passfd on more platforms


From: Bastien ROUCARIES
Subject: Re: passfd on more platforms
Date: Mon, 14 Mar 2011 17:03:18 +0100

On Mon, Mar 14, 2011 at 4:50 PM, Paolo Bonzini <address@hidden> wrote:
> On 03/14/2011 04:43 PM, Bastien ROUCARIES wrote:
>>>
>>> >  While using TCP out-of-band data would be an interesting solution for
>>> >  Windows, UDP doesn't have out-of-band data.  So, if sendfd/recvfd is
>>> > going
>>> >  to be limited to SOCK_DGRAM, using out-of-band data for Windows is not
>>> > going
>>> >  to work.
>>
>> Could we know from fd if it is a udp or tcp socket ?
>>
>> - if tcp send as OOB
>> - if udp send normally
>
> I think that'd be overengineering anyway.  With the limitation to SOCK_DGRAM
> sockets (AF_UNIX for Unix, AF_INET for Win32) your original plan works.

Not sure BTW it will be really simple:
- send as oob data if fail with WSAEOPNOTSUPP come back to normal send

And BTW I will implement emulation of AF_UNIX under mingw using
localhost AF_INET socket

Bastien

> Paolo
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]