Example #1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="next">下一个分析字节流类</param>
 /// <param name="encrypter">封装连接类</param>
 public ReadLength(ReadFunction next, IEncrypter encrypter)
     : this(4, next, encrypter)
 {
 }
Example #2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="next">下一个分析字节流类</param>
 /// <param name="encrypter">封装连接器类</param>
 /// <param name="encryptedConnection">封装连接类</param>
 public ReadHandshake(ReadFunction next, IEncrypter encrypter, IEncryptedConnection encryptedConnection)
     : this(68, next, encrypter, encryptedConnection)
 {
 }
Example #3
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="length">分析的长度</param>
 /// <param name="next">下一个分析字节流类</param>
 /// <param name="encrypter">封装连接类</param>
 protected ReadLength(int length, ReadFunction next, IEncrypter encrypter)
     : base(length, next)
 {
     this.encrypter = encrypter;
 }
Example #4
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="length">分析的长度</param>
 /// <param name="next">下一个分析字节流类</param>
 /// <param name="encrypter">封装连接器类</param>
 /// <param name="encryptedConnection">封装连接类</param>
 private ReadHandshake(int length, ReadFunction next, IEncrypter encrypter, IEncryptedConnection encryptedConnection)
     : base(length, next, encrypter)
 {
     this.encryptedConnection = encryptedConnection;
 }