FM.LiveSwitch by Frozen Mountain Software

<PackageReference Include="FM.LiveSwitch" Version="1.19.2.47139" />

.NET API 5,381,696 bytes

 TcpSocket

public class TcpSocket : StreamSocket

public static bool AttemptIPv4Dscp { get; set; }

public static bool AttemptIPv6Dscp { get; set; }

public static bool AttemptNoDelay { get; set; }

public static X509Certificate2 Certificate { get; set; }

public static SslProtocols? ClientEnabledSslProtocols { get; set; }

public static bool DisableProxy { get; set; }

public static string ManualProxyHostname { get; set; }

public static int ManualProxyPort { get; set; }

public static string ProxyPassword { get; set; }

public static string ProxyUsername { get; set; }

public static SslProtocols? ServerEnabledSslProtocols { get; set; }

public SslProtocols? EnabledSslProtocols { get; set; }

public int ListenBacklog { get; set; }

public string ProxyIPAddress { get; }

public int ProxyPort { get; }

public Socket Socket { get; }

public Stream Stream { get; }

public static event Action1<TcpSocket> OnSocketCreated

public TcpSocket(bool server, bool ipv6, bool secure)

public TcpSocket(Socket socket, bool server, bool secure)

public void AcceptAsync(Action0 onSuccess, Action1<Exception> onFailure, Action1<StreamSocket> onSocket, Action1<Exception> onSocketFailure)