mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-06 19:49:41 +03:00
29 lines
613 B
C++
29 lines
613 B
C++
// -*- mode: c++; indent-tabs-mode: nil; tab-width: -*-
|
|
#pragma once
|
|
#include "moses/parameters/ServerOptions.h"
|
|
#include "Session.h"
|
|
#include <xmlrpc-c/base.hpp>
|
|
#include <xmlrpc-c/registry.hpp>
|
|
#include <xmlrpc-c/server_abyss.hpp>
|
|
#ifndef WITH_THREADS
|
|
#pragma message("COMPILING WITHOUT THREADS!")
|
|
#else
|
|
#include "moses/ThreadPool.h"
|
|
#endif
|
|
namespace MosesServer
|
|
{
|
|
class Server;
|
|
class
|
|
CloseSession : public xmlrpc_c::method
|
|
{
|
|
Server& m_server;
|
|
public:
|
|
CloseSession(Server& server);
|
|
|
|
void execute(xmlrpc_c::paramList const& paramList,
|
|
xmlrpc_c::value * const retvalP);
|
|
|
|
};
|
|
|
|
}
|