Move wildcard bind in Socket.ConnectAsync to be Windows-only (dotnet/corefx#40767)
authorStephen Toub <stoub@microsoft.com>
Wed, 4 Sep 2019 14:33:13 +0000 (10:33 -0400)
committerGitHub <noreply@github.com>
Wed, 4 Sep 2019 14:33:13 +0000 (10:33 -0400)
commit6d5afedf7722dcb9e3576e1e7199167f59a183a9
treec4fb9b4d8fa559bbea59949be5f7e9e4af09f7ef
parent2614c3c2c8ff71d7ff47aab0933c525bc526e011
Move wildcard bind in Socket.ConnectAsync to be Windows-only (dotnet/corefx#40767)

* Move wildcard bind in Socket.ConnectAsync to be Windows-only

It's necessary to use ConnectEx; it's not necessary on Unix.

* Address PR feedback

Commit migrated from https://github.com/dotnet/corefx/commit/8a1fc9d6b3c9b85a881e220a9f9193b72c0e801b
src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.Windows.cs
src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.cs