1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-03 15:31:15 -05:00
sdrangel/httpserver/httplistenersettings.h

49 lines
912 B
C
Raw Normal View History

/*
* httplistenersettings.h
*
* Created on: Nov 13, 2017
* Author: f4exb
*/
#ifndef HTTPSERVER_HTTPLISTENERSETTINGS_H_
#define HTTPSERVER_HTTPLISTENERSETTINGS_H_
namespace qtwebapp {
2018-03-01 03:14:37 -05:00
class HttpListenerSettings
{
2018-03-01 03:14:37 -05:00
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_ */