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; }
public CreateSessionMessage(I2PSessionConfig cfg) : base(ProtocolMessageType.CreateSession) { Config = cfg; }
public ReconfigureSessionMessage(BufRef reader) : base(ProtocolMessageType.ReconfigSession) { SessionId = reader.ReadFlip16(); Config = new I2PSessionConfig(reader); }
public ReconfigureSessionMessage(I2PSessionConfig cfg) : base(ProtocolMessageType.ReconfigSession) { Config = cfg; }
public CreateSessionMessage(BufRef reader) : base(ProtocolMessageType.CreateSession) { Config = new I2PSessionConfig(reader); }