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

Robert Jordan robertj at gmx.net
Fri Jul 22 11:26:46 EDT 2011


On 22.07.2011 17:12, Andy Hume wrote:
> Wow.  I'll give that a go.  What kind of lock?  Just Monitor.Enter?

Yes. lock(...) {...}

>
> Ohh wait.  The handle in the Socket is (surely?) the WAPI Handle and not
> the FD...

No, it's actually the naked fd. See Socket_internal()'s usage
in Socket_2_1.cs and its unmanaged companion:

ves_icall_System_Net_Sockets_Socket_Socket_internal()

in metadata/socket-io.c

Robert



More information about the Mono-devel-list mailing list