Inheritance: Session
Exemplo n.º 1
0
 public Cookie(HandShake handshake, byte[] tag, string queryUrl)
 {
     CookieComputing = new CookieComputing(handshake);
     QueryUrl = queryUrl;
     Tag = tag.BytesToString();
     ComputeKeys();
 }
Exemplo n.º 2
0
 public Cookie(HandShake handshake, byte[] tag, string queryUrl)
 {
     CookieComputing = new CookieComputing(handshake);
     QueryUrl        = queryUrl;
     Tag             = tag.BytesToString();
     ComputeKeys();
 }
Exemplo n.º 3
0
 public CookieComputing(HandShake handshake)
 {
     _handshake = handshake;
     Value      = Utils.GenerateRandomBytes(COOKIE_SIZE);
     if (handshake == null)
     {
         Nonce = Utils.GenerateRandomBytes(73);
         Buffer.BlockCopy(InitBuffer, 0, Nonce, 0, 7);
         Nonce[7] = 0x41;
         Nonce[8] = 0x0E;
     }
     else
     {
         Nonce = InitBuffer.Clone() as byte[];
     }
 }
Exemplo n.º 4
0
 public CookieComputing(HandShake handshake)
 {
     _handshake = handshake;
     Value = Utils.GenerateRandomBytes(COOKIE_SIZE);
     if (handshake == null)
     {
         Nonce = Utils.GenerateRandomBytes(73);
         Buffer.BlockCopy(InitBuffer, 0, Nonce, 0, 7);
         Nonce[7] = 0x41;
         Nonce[8] = 0x0E;
     }
     else
     {
         Nonce = InitBuffer.Clone() as byte[];
     }
 }
Exemplo n.º 5
0
 public InboundRTMFPProtocol()
 {
     HandShakeSession = new HandShake(this);
     //_pCirrus = new Target(new IPEndPoint(0, 0));
 }
Exemplo n.º 6
0
 public InboundRTMFPProtocol()
 {
     HandShakeSession = new HandShake(this);
     //_pCirrus = new Target(new IPEndPoint(0, 0));
 }