mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 10:05:46 -05:00
49 lines
912 B
C++
49 lines
912 B
C++
/*
|
|
* httplistenersettings.h
|
|
*
|
|
* Created on: Nov 13, 2017
|
|
* Author: f4exb
|
|
*/
|
|
|
|
#ifndef HTTPSERVER_HTTPLISTENERSETTINGS_H_
|
|
#define HTTPSERVER_HTTPLISTENERSETTINGS_H_
|
|
|
|
namespace qtwebapp {
|
|
|
|
class HttpListenerSettings
|
|
{
|
|
public:
|
|
QString host;
|
|
int port;
|
|
int minThreads;
|
|
int maxThreads;
|
|
int cleanupInterval;
|
|
int readTimeout;
|
|
QString sslKeyFile;
|
|
QString sslCertFile;
|
|
int maxRequestSize;
|
|
int maxMultiPartSize;
|
|
|
|
HttpListenerSettings() {
|
|
resetToDefaults();
|
|
}
|
|
|
|
void resetToDefaults()
|
|
{
|
|
host = "192.168.0.100";
|
|
port = 8080;
|
|
minThreads = 1;
|
|
maxThreads = 100;
|
|
cleanupInterval = 1000;
|
|
readTimeout = 10000;
|
|
sslKeyFile = "";
|
|
sslCertFile = "";
|
|
maxRequestSize = 16000;
|
|
maxMultiPartSize = 1000000;
|
|
}
|
|
};
|
|
|
|
} // end of namespace
|
|
|
|
#endif /* HTTPSERVER_HTTPLISTENERSETTINGS_H_ */
|