Ejemplo n.º 1
0
        private static void UpdateConfiguration(SessionInfo newsession, I2PSessionConfig cfg)
        {
            if (cfg.Options.Mappings.ContainsKey(new I2PString("outbound.nickname")))
            {
                newsession.MyDestination.Name = cfg.Options["outbound.nickname"];
            }

            newsession.MyDestination.TargetInboundTunnelCount  = cfg.InboundQuantity;
            newsession.MyDestination.InboundTunnelHopCount     = cfg.InboundLength;
            newsession.MyDestination.TargetOutboundTunnelCount = cfg.OutboundQuantity;
            newsession.MyDestination.OutboundTunnelHopCount    = cfg.OutboundLength;
        }
Ejemplo n.º 2
0
 public CreateSessionMessage(I2PSessionConfig cfg) : base(ProtocolMessageType.CreateSession)
 {
     Config = cfg;
 }
Ejemplo n.º 3
0
 public ReconfigureSessionMessage(BufRef reader) : base(ProtocolMessageType.ReconfigSession)
 {
     SessionId = reader.ReadFlip16();
     Config    = new I2PSessionConfig(reader);
 }
Ejemplo n.º 4
0
 public ReconfigureSessionMessage(I2PSessionConfig cfg) : base(ProtocolMessageType.ReconfigSession)
 {
     Config = cfg;
 }
Ejemplo n.º 5
0
 public CreateSessionMessage(BufRef reader) : base(ProtocolMessageType.CreateSession)
 {
     Config = new I2PSessionConfig(reader);
 }