[Top][All Lists]

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

Re: passfd on more platforms

From: Paolo Bonzini
Subject: Re: passfd on more platforms
Date: Mon, 14 Mar 2011 16:50:56 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7

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.


reply via email to

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