summaryrefslogtreecommitdiff
path: root/orkaudio/OrkAudio.cpp
diff options
context:
space:
mode:
authorGerald Begumisa <ben_g@users.sourceforge.net>2007-07-19 09:32:59 +0000
committerGerald Begumisa <ben_g@users.sourceforge.net>2007-07-19 09:32:59 +0000
commita78ef547ae120f95a2569c9643cd60992ba547c7 (patch)
treef8f7937525ff510347c55594a09416c38043c4ed /orkaudio/OrkAudio.cpp
parent9b20567589624aad4bb85308352252c32ca675cb (diff)
Multiple orkaudio instances may be ran on one server by setting the environment variables ORKAUDIO_CONFIG_PATH and ORKAUDIO_LOGGING_PATH to point to the location of the configuration files and log files respectively. Two variables in config.xml <CommandLineServerPort> and <HttpServerPort> have been added which specify the ports for the command line server and HTTP server respectively - these default to 59130 and 59140 respectively, note that previously the default ports were 10000 and 20000 respectively.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@454 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/OrkAudio.cpp')
-rw-r--r--orkaudio/OrkAudio.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/orkaudio/OrkAudio.cpp b/orkaudio/OrkAudio.cpp
index a97dfc3..148c64f 100644
--- a/orkaudio/OrkAudio.cpp
+++ b/orkaudio/OrkAudio.cpp
@@ -237,14 +237,15 @@ void MainThread()
{
LOG4CXX_INFO(LOG.rootLog, CStdString("Failed to create reporting thread"));
}
+
// Create command line server on port 10000
- if (!ACE_Thread_Manager::instance()->spawn(ACE_THR_FUNC(CommandLineServer::run), (void *)10000))
+ if (!ACE_Thread_Manager::instance()->spawn(ACE_THR_FUNC(CommandLineServer::run), (void *)CONFIG.m_commandLineServerPort))
{
LOG4CXX_INFO(LOG.rootLog, CStdString("Failed to create command line server"));
}
// Create Http server on port 20000
- if (!ACE_Thread_Manager::instance()->spawn(ACE_THR_FUNC(HttpServer::run), (void *)20000))
+ if (!ACE_Thread_Manager::instance()->spawn(ACE_THR_FUNC(HttpServer::run), (void *)CONFIG.m_httpServerPort))
{
LOG4CXX_INFO(LOG.rootLog, CStdString("Failed to create Http server"));
}