public KeyID(Int32 id, System.Net.EndPoint ep, ISession session) { _id = id; _endpoint = ep; _session = session; _hash = id * 31 + (ep == null ? 0 : ep.GetHashCode()); }
public KeyUri(Uri uri, byte[] oscoap, System.Net.EndPoint ep) { _uri = uri; _endpoint = ep; _oscoap = oscoap; _hash = _uri.GetHashCode() * 31 + ep.GetHashCode(); if (oscoap != null) { Int32 hash2 = 0; for (int i = 0; i < oscoap.Length; i++) { hash2 = hash2 * 7 + oscoap[i]; } _hash += hash2 * 71; } }
public KeyUri(Uri uri, System.Net.EndPoint ep) { _uri = uri; _endpoint = ep; _hash = _uri.GetHashCode() * 31 + ep.GetHashCode(); }
public KeyToken(Byte[] token, System.Net.EndPoint ep) { _token = token; _endpoint = ep; _hash = ByteArrayUtils.ComputeHash(_token) * 31 + ep.GetHashCode(); }
public KeyID(Int32 id, System.Net.EndPoint ep) { _id = id; _endpoint = ep; _hash = id * 31 + ep.GetHashCode(); }