[Mono-dev] Non-TCP/IP socket access

Robert Jordan robertj at gmx.net
Fri Jul 22 07:43:05 EDT 2011


On 22.07.2011 13:08, Andy Hume wrote:
> Presumably I can't convert my fd to a wapi handle somehow...  So is
> that plan not going to work? :-,(

It won't work. The whole socket machinery assumes type AF_UNIX or
AF_INET. If you set a fd of some other address family type,
a lot of nasty things could happen if this check wasn't there.

Get/SetSocketOptions, Local/RemoteEndPoint etc. simply don't cope
with other AF types. They would return garbage at best.

Robert



More information about the Mono-devel-list mailing list