TSystems.RELOAD.Topology.IceCandidate.EqualsInAddressPort C# (CSharp) Method

EqualsInAddressPort() public method

public EqualsInAddressPort ( IceCandidate iceCandidate ) : bool
iceCandidate IceCandidate
return bool
        public bool EqualsInAddressPort(IceCandidate iceCandidate)
        {
            // check if IP Address and Port are equal
            if (this.addr_port.ipaddr.Equals(iceCandidate.addr_port.ipaddr) &&
                this.addr_port.port == iceCandidate.addr_port.port &&
                this.addr_port.type == iceCandidate.addr_port.type)
            {
                return true;
            }

            else
                return false;
        }