|
|
|
|
|
#pragma once |
|
|
|
|
|
#include "../legacy/xmlrpc-c.h" |
|
|
#include <string> |
|
|
#include <map> |
|
|
#include <stdint.h> |
|
|
|
|
|
namespace Moses2 |
|
|
{ |
|
|
class Parameter; |
|
|
|
|
|
struct |
|
|
ServerOptions { |
|
|
bool is_serial; |
|
|
uint32_t numThreads; |
|
|
|
|
|
size_t sessionTimeout; |
|
|
size_t sessionCacheSize; |
|
|
|
|
|
int port; |
|
|
std::string logfile; |
|
|
int maxConn; |
|
|
int maxConnBacklog; |
|
|
int keepaliveTimeout; |
|
|
int keepaliveMaxConn; |
|
|
int timeout; |
|
|
|
|
|
bool init(Parameter const& param); |
|
|
ServerOptions(Parameter const& param); |
|
|
ServerOptions(); |
|
|
|
|
|
bool |
|
|
update(std::map<std::string,xmlrpc_c::value>const& params) { |
|
|
return true; |
|
|
} |
|
|
|
|
|
}; |
|
|
|
|
|
} |
|
|
|