00001 // -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*- 00002 #pragma once 00003 #include <string> 00004 #include "moses/Parameter.h" 00005 namespace Moses 00006 { 00007 00008 struct 00009 ServerOptions 00010 { 00011 bool is_serial; 00012 uint32_t numThreads; // might not be used any more, actually 00013 00014 size_t sessionTimeout; // this is related to Moses translation sessions 00015 size_t sessionCacheSize; // this is related to Moses translation sessions 00016 00017 int port; // this is for the abyss server 00018 std::string logfile; // this is for the abyss server 00019 int maxConn; // this is for the abyss server 00020 int maxConnBacklog; // this is for the abyss server 00021 int keepaliveTimeout; // this is for the abyss server 00022 int keepaliveMaxConn; // this is for the abyss server 00023 int timeout; // this is for the abyss server 00024 00025 bool init(Parameter const& param); 00026 ServerOptions(Parameter const& param); 00027 ServerOptions(); 00028 }; 00029 00030 }