Ejemplo n.º 1
0
        internal static bool GetReuseAddress(TcpHandle tcpHandle)
        {
            IntPtr socketHandle = GetSocketHandle(tcpHandle);

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

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