private EngineSettings()
{
}
///
/// Initialises a new engine settings with the supplied values
///
/// The default path to save downloaded material to
/// The port to listen for incoming connections on
public EngineSettings(string defaultSavePath, int listenPort)
: this(defaultSavePath, listenPort, DefaultUseuPnP, DefaultMaxConnections, DefaultMaxHalfOpenConnections, DefaultMaxDownloadSpeed, DefaultMaxUploadSpeed, DefaultMinLevel, DefaultAllowLegacyConnections)
{
}
///
/// Initialises a new engine settings with the supplied values
///
/// The default path to save downloaded material to
/// The port to listen for incoming connections on
/// True if uPnP should be used to map the listen port
public EngineSettings(string defaultSavePath, int listenPort, bool useuPnP)
: this(defaultSavePath, listenPort, useuPnP, DefaultMaxConnections, DefaultMaxHalfOpenConnections, DefaultMaxDownloadSpeed, DefaultMaxUploadSpeed, DefaultMinLevel, DefaultAllowLegacyConnections)
{
}
///
/// Initialises a new engine settings with the supplied values
///
/// The overall maximum number of open connections allowed
/// The default path to save downloaded material to
/// The port to listen for incoming connections on
/// True if uPnP should be used to map the listen port
public EngineSettings(string defaultSavePath, int listenPort, bool useuPnP, int globalMaxConnections)
: this(defaultSavePath, listenPort, useuPnP, globalMaxConnections, DefaultMaxHalfOpenConnections, DefaultMaxDownloadSpeed, DefaultMaxUploadSpeed, DefaultMinLevel, DefaultAllowLegacyConnections)
{
}
///
/// Initialises a new engine settings with the supplied values
///
/// The overall maximum number of open connections allowed
/// The overall maximum number of half open connections
/// The default path to save downloaded material to
/// The port to listen for incoming connections on
/// True if uPnP should be used to map the listen port
public EngineSettings(string defaultSavePath, int listenPort, bool useuPnP, int globalMaxConnections, int globalHalfOpenConnections)
: this(defaultSavePath, listenPort, useuPnP, globalMaxConnections, globalHalfOpenConnections, DefaultMaxDownloadSpeed, DefaultMaxUploadSpeed, DefaultMinLevel, DefaultAllowLegacyConnections)
{
}
///
/// Initialises a new engine settings with the supplied values
///
/// The overall maximum number of open connections allowed
/// The overall maximum download speed
/// The overall maximum upload speed
/// The overall maximum number of half open connections
/// The default path to save downloaded material to
/// The port to listen for incoming connections on
/// True if uPnP should be used to map the listen port
/// True if incoming connections without encryption should be accepted when encryption is enabled
/// The minimum level of encryption to use for outgoing connections
public EngineSettings(string defaultSavePath, int listenPort, bool useuPnP, int globalMaxConnections, int globalHalfOpenConnections, int globalMaxDownloadSpeed, int globalMaxUploadSpeed, EncryptionType minEncryption, bool allowLegacyConnections)
{
this.allowLegacyConnections = allowLegacyConnections;
this.globalMaxConnections = globalMaxConnections;
this.globalMaxDownloadSpeed = globalMaxDownloadSpeed;
this.globalMaxUploadSpeed = globalMaxUploadSpeed;
this.globalMaxHalfOpenConnections = globalHalfOpenConnections;
this.listenPort = listenPort;
this.minEncryptionLevel = minEncryption;
this.savePath = defaultSavePath;
this.useuPnP = useuPnP;
}