[System] Added missing ctor to Socket for initializing dual-mode socket
authorKei Nakazawa <muo@muo.jp>
Sat, 25 Oct 2014 12:58:29 +0000 (21:58 +0900)
committerKei Nakazawa <muo@muo.jp>
Sat, 25 Oct 2014 17:57:22 +0000 (02:57 +0900)
commitdc30595ace1f02ae50879fd9bcb7bdb1e18ebb3d
tree5659479d931911fa80729b100300a0675d96f646
parentf7fd52ad18464ad9c40516c2c59b406c1b12e8c9
[System] Added missing ctor to Socket for initializing dual-mode socket
 - Ref: https://bugzilla.xamarin.com/show_bug.cgi?id=20048
 - Mono currently doesn't support 2-args Socket ctor added in .NET 4.5
 - Absence of this ctor prevents KestrelHttpServer (web server for
   ASP.NET vNext: https://github.com/aspnet/KestrelHttpServer ) test
   code from working
 - I hesitated to put IPv4 only implementation, but full dual stack
   (IPv4/v6) support would need bunch of works to be done. So, I pinned
   supported protocol of new ctor to IPv4. Also, I filed v4/v6 support
   issue as a MonoTODO entry inside the source code.
mcs/class/System/System.Net.Sockets/Socket_2_1.cs