Example #1
0
        internal static bool GetReuseAddress(TcpHandle tcpHandle)
        {
            IntPtr socketHandle = GetSocketHandle(tcpHandle);

            return(IsWindows
                ? WindowsApi.GetReuseAddress(socketHandle)
                : UnixApi.GetReuseAddress(socketHandle));
        }
        internal static bool GetReuseAddress(TcpHandle tcpHandle)
        {
            IntPtr socketHandle = GetSocketHandle(tcpHandle);

            return(RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
                ? WindowsApi.GetReuseAddress(socketHandle)
                : UnixApi.GetReuseAddress(socketHandle));
        }