diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-07-28 16:29:49 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-07-28 16:29:49 +0300 |
commit | d67723fd29c53dcaa746a310a770c560726a1105 (patch) | |
tree | e9f5ea0ad942c34d3d52eda0f94996e928b240e3 /moses/ExportInterface.cpp | |
parent | d1cb249a7f263dbc5cf39b2805697e5ca8a7ad1f (diff) | |
parent | b64af59af64d9c8d5eb7600e25e74f98c32a3008 (diff) |
Merge branch 'master' of http://github.com/moses-smt/mosesdecoder into ranked-sampling
Conflicts:
moses/TargetPhrase.cpp
moses/TargetPhrase.h
Diffstat (limited to 'moses/ExportInterface.cpp')
-rw-r--r-- | moses/ExportInterface.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/moses/ExportInterface.cpp b/moses/ExportInterface.cpp index cf86aa876..d3933ae6a 100644 --- a/moses/ExportInterface.cpp +++ b/moses/ExportInterface.cpp @@ -167,7 +167,14 @@ run_as_server() myRegistry.addMethod("updater", updater); myRegistry.addMethod("optimize", optimizer); - xmlrpc_c::serverAbyss myAbyssServer(myRegistry, port, logfile); + xmlrpc_c::serverAbyss myAbyssServer( + xmlrpc_c::serverAbyss::constrOpt() + .registryP(&myRegistry) + .portNumber(port) // TCP port on which to listen + .logFileName(logfile) + .allowOrigin("*") + .maxConn((unsigned int)num_threads) + ); XVERBOSE(1,"Listening on port " << port << endl); if (isSerial) { |