Inheritance: Session
コード例 #1
0
ファイル: Cookie.cs プロジェクト: langhuihui/csharprtmp
 public Cookie(HandShake handshake, byte[] tag, string queryUrl)
 {
     CookieComputing = new CookieComputing(handshake);
     QueryUrl = queryUrl;
     Tag = tag.BytesToString();
     ComputeKeys();
 }
コード例 #2
0
ファイル: Cookie.cs プロジェクト: zhujingcheng/csharprtmp
 public Cookie(HandShake handshake, byte[] tag, string queryUrl)
 {
     CookieComputing = new CookieComputing(handshake);
     QueryUrl        = queryUrl;
     Tag             = tag.BytesToString();
     ComputeKeys();
 }
コード例 #3
0
ファイル: Cookie.cs プロジェクト: zhujingcheng/csharprtmp
 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[];
     }
 }
コード例 #4
0
ファイル: Cookie.cs プロジェクト: langhuihui/csharprtmp
 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[];
     }
 }
コード例 #5
0
 public InboundRTMFPProtocol()
 {
     HandShakeSession = new HandShake(this);
     //_pCirrus = new Target(new IPEndPoint(0, 0));
 }
コード例 #6
0
 public InboundRTMFPProtocol()
 {
     HandShakeSession = new HandShake(this);
     //_pCirrus = new Target(new IPEndPoint(0, 0));
 }