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.
Paolo