Add new method for parameterless Listen() (dotnet/corefx#42262)
authorMohammed Adenwala <adenwala@outlook.com>
Fri, 1 Nov 2019 16:23:40 +0000 (11:23 -0500)
committerStephen Toub <stoub@microsoft.com>
Fri, 1 Nov 2019 16:23:40 +0000 (12:23 -0400)
commitf32b1c1464fd53a3b32a6805c00f5e5db2f85014
tree3d3ef49ac4d3ba8c15d0ac99c633284df895065f
parent02ba75ad0fdda2e5f5c93a8e4e3ab6600d87fb99
Add new method for parameterless Listen() (dotnet/corefx#42262)

* Add new method for parameterless Listen()

This adds a parameterless overload for Listen(int) which passes in int.MaxValue as the default value. I changed existing tests that were explicitly using int.MaxValue or a random value to use the new overload with no parameter.

* Update src/System.Net.Sockets/src/System/Net/Sockets/Socket.cs

Co-Authored-By: Stephen Toub <stoub@microsoft.com>
Commit migrated from https://github.com/dotnet/corefx/commit/8bdfd53bd23f7242a96c72f152bed5e2adf684fc
src/libraries/System.Net.Sockets/ref/System.Net.Sockets.cs
src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.cs
src/libraries/System.Net.Sockets/tests/FunctionalTests/CreateSocketTests.cs
src/libraries/System.Net.Sockets/tests/FunctionalTests/DisposedSocketTests.cs
src/libraries/System.Net.Sockets/tests/FunctionalTests/DisposedSocketTests.netcoreapp.cs
src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketOptionNameTest.cs