SharpCifs.Smb.SmbTransport.Matches C# (CSharp) Method

Matches() private method

private Matches ( UniAddress address, int port, IPAddress localAddr, int localPort, string hostName ) : bool
address UniAddress
port int
localAddr System.Net.IPAddress
localPort int
hostName string
return bool
        internal virtual bool Matches(UniAddress address, int port, IPAddress localAddr,
            int localPort, string hostName)
        {
            if (hostName == null)
            {
                hostName = address.GetHostName();
            }
            return (TconHostName == null || Runtime.EqualsIgnoreCase(hostName, TconHostName)) && address.Equals(this.Address) && (port == -1 || port == this.Port
                 || (port == 445 && this.Port == 139)) && (localAddr == this.LocalAddr || (localAddr
                 != null && localAddr.Equals(this.LocalAddr))) && localPort == this.LocalPort;
        }