centralized and cmake-based campaign server+port config

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1590 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
hsc
2012-09-04 13:57:01 +00:00
parent 8d2fea7521
commit e56918e40e
10 changed files with 13 additions and 13 deletions

View File

@ -130,7 +130,7 @@ void JobServer::run()
return;
}
/* IPv4, Port: 1111, accept all IP adresses */
/* IPv4, bind to all interfaces */
struct sockaddr_in saddr;
saddr.sin_family = AF_INET;
saddr.sin_port = htons(m_port);

View File

@ -72,7 +72,7 @@ private:
void sendWork(int sockfd);
public:
JobServer(int port = 1111) : m_port(port), m_finish(false), m_noMoreExps(false),
JobServer(int port = SERVER_COMM_TCP_PORT) : m_port(port), m_finish(false), m_noMoreExps(false),
m_maxThreads(128), m_threadtimeout(0)
{
#ifndef __puma