Inheritance: IDisposable
Ejemplo n.º 1
0
 public Cookie(OutboundHandshake handshake, byte[] tag, Target target)
 {
     Id = handshake.Id;
     CookieComputing = new CookieComputing(handshake);
     Target = target;
     PeerId = Target.Sha256.ComputeHash(CookieComputing.Nonce, 0, CookieComputing.Nonce.Length);
 }
Ejemplo n.º 2
0
 public Cookie(OutboundHandshake handshake, byte[] tag, Target target)
 {
     Id = handshake.Id;
     CookieComputing = new CookieComputing(handshake);
     Target          = target;
     PeerId          = Target.Sha256.ComputeHash(CookieComputing.Nonce, 0, CookieComputing.Nonce.Length);
 }
Ejemplo n.º 3
0
 public Cookie(HandShake handshake, byte[] tag, string queryUrl)
 {
     CookieComputing = new CookieComputing(handshake);
     QueryUrl = queryUrl;
     Tag = tag.BytesToString();
     ComputeKeys();
 }
Ejemplo n.º 4
0
 public Cookie(HandShake handshake, byte[] tag, string queryUrl)
 {
     CookieComputing = new CookieComputing(handshake);
     QueryUrl        = queryUrl;
     Tag             = tag.BytesToString();
     ComputeKeys();
 }