[System] Added icall SupportsPortReuse.
authorMarcos Henrich <marcos.henrich@xamarin.com>
Mon, 12 Oct 2015 15:45:37 +0000 (16:45 +0100)
committerMarcos Henrich <marcos.henrich@xamarin.com>
Mon, 12 Oct 2015 15:45:37 +0000 (16:45 +0100)
commitd4e6109e822341feec962ae926135b3ef8585676
treedf81019e8ea70c04360063bfa4a93ee9a7ef7700
parent35e42072a80a26341cd111344d022636d1cf051a
[System] Added icall SupportsPortReuse.

Linux kernels before 3.9 did not support port reuse.
Added private method System.Net.Sockets.Socket.SupportsPortReuse,
which returns true when the runtime is able to bind to the same address
and port multiple times.
mcs/class/System/System.Net.Sockets/Socket.cs
mcs/class/System/Test/System.Net.Sockets/SocketTest.cs
mono/metadata/icall-def.h
mono/metadata/socket-io.c
mono/metadata/socket-io.h