Example #1
0
        public CreateLeaseSetMessage(BufRef reader, I2CPSession session)
            : base(ProtocolMessageType.CreateLS)
        {
            SessionId = reader.ReadFlip16();

            var cert = session.SessionIds[SessionId].Config.Destination.Certificate;

            DSAPrivateSigningKey = new I2PSigningPrivateKey(
                reader,
                new I2PCertificate(I2PSigningKey.SigningKeyTypes.DSA_SHA1));

            PrivateKey = new I2PPrivateKey(reader, cert);
            Leases     = new I2PLeaseSet(reader);
        }
Example #2
0
 internal WaitGetDateState(I2CPSession sess) : base(sess)
 {
 }
 internal WaitForEstablishedDestinationState(I2CPSession sess) : base(sess)
 {
 }
Example #4
0
 internal WaitProtVer(I2CPSession sess) : base(sess)
 {
 }
Example #5
0
 internal EstablishedState(I2CPSession sess) : base(sess)
 {
 }
Example #6
0
 protected I2CPState(I2CPSession sess)
 {
     Session       = sess;
     ReceiveWriter = new BufRefLen(ReceiveMessageBuffer);
 }
 internal WaitForCreateSessionState(I2CPSession sess) : base(sess)
 {
 }
Example #8
0
 protected I2CPState(I2CPSession sess)
 {
     Session = sess;
 }