|
|
|
#pragma once |
|
#include <string> |
|
#include <map> |
|
#include <stdint.h> |
|
#include <xmlrpc-c/base.hpp> |
|
#include <xmlrpc-c/registry.hpp> |
|
#include <xmlrpc-c/server_abyss.hpp> |
|
|
|
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; |
|
} |
|
|
|
}; |
|
|
|
} |
|
|