public TcpClient(IPEndPoint localEP)
{
if (NetEventSource.IsEnabled) NetEventSource.Enter(this, localEP);
if (localEP == null)
{
throw new ArgumentNullException(nameof(localEP));
}
// IPv6: Establish address family before creating a socket
_family = localEP.AddressFamily;
InitializeClientSocket();
Client.Bind(localEP);
if (NetEventSource.IsEnabled) NetEventSource.Exit(this);
}