internal static void SetReusePort(TcpHandle tcpHandle, int value) { IntPtr socketHandle = GetSocketHandle(tcpHandle); // Ignore SO_REUSEPORT on Windows because it is controlled // by SO_REUSEADDR if (IsWindows) { return; } UnixApi.SetReusePort(socketHandle, value); }
internal static void SetReusePort(TcpHandle tcpHandle, int value) { IntPtr socketHandle = GetSocketHandle(tcpHandle); // Ignore SO_REUSEPORT on Windows because it is controlled // by SO_REUSEADDR if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { return; } UnixApi.SetReusePort(socketHandle, value); }