Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Mark != 0)
            {
                hash ^= Mark.GetHashCode();
            }
            if (Tfo != 0)
            {
                hash ^= Tfo.GetHashCode();
            }
            if (Tproxy != 0)
            {
                hash ^= Tproxy.GetHashCode();
            }
            if (ReceiveOriginalDestAddress != false)
            {
                hash ^= ReceiveOriginalDestAddress.GetHashCode();
            }
            if (BindAddress.Length != 0)
            {
                hash ^= BindAddress.GetHashCode();
            }
            if (BindPort != 0)
            {
                hash ^= BindPort.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Mark != 0)
            {
                hash ^= Mark.GetHashCode();
            }
            if (Tfo != global::V2Ray.Core.Transport.Internet.SocketConfig.Types.TCPFastOpenState.AsIs)
            {
                hash ^= Tfo.GetHashCode();
            }
            if (Tproxy != global::V2Ray.Core.Transport.Internet.SocketConfig.Types.TProxyMode.Off)
            {
                hash ^= Tproxy.GetHashCode();
            }
            if (ReceiveOriginalDestAddress != false)
            {
                hash ^= ReceiveOriginalDestAddress.GetHashCode();
            }
            if (BindAddress.Length != 0)
            {
                hash ^= BindAddress.GetHashCode();
            }
            if (BindPort != 0)
            {
                hash ^= BindPort.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 3
0
 /// <summary>Returns a hash value for this object.</summary>
 public override int GetHashCode()
 {
     unchecked
     {
         var hash = (BindAddress == null ? 0 : BindAddress.GetHashCode() * 63689) + Port;
         if (Secure)
         {
             hash *= 3;
         }
         return(hash);
     }
 }