Beispiel #1
0
 public GarlicClove(GarlicCloveDelivery delivery, I2PDate exp)
 {
     Delivery   = delivery;
     Message    = delivery.Message;
     CloveId    = BufUtils.RandomUint();
     Expiration = exp;
 }
Beispiel #2
0
 public GarlicClove(GarlicCloveDelivery delivery)
 {
     Delivery   = delivery;
     Message    = delivery.Message;
     CloveId    = BufUtils.RandomUint();
     Expiration = new I2PDate(DateTime.UtcNow + TimeSpan.FromSeconds(8));
 }
Beispiel #3
0
 public GarlicClove(BufRefLen reader)
 {
     Delivery   = GarlicCloveDelivery.CreateGarlicCloveDelivery(reader);
     Message    = I2NPMessage.ReadHeader16(reader).Message;
     CloveId    = reader.ReadFlip32();
     Expiration = new I2PDate(reader);
     reader.Seek(3);   // Cert
 }