On Mon, Mar 14, 2011 at 4:50 PM, Paolo Bonzini <[email protected]> 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 >
