Skip to content
Sein Coray edited this page Sep 12, 2016 · 3 revisions

View the Protocol page for the communication protocol between the servers and the clients.

Start Servers

Master

There must be exactly ONE master server running. To start the master server, use following command:

./PRIME-Server -m -p [serverport] -c [clientport]

The serverport is the port where the slave servers will connect to, the clientport where the clients will connect to. Defaults are: 6666 for serverport, 6667 for clientport

Slave

Slave servers can be started by the following command:

./PRIME-Server -s [masterip] -p [masterport] -c [clientport] -i [publicip]

You need to specify the masterip, where the master is reachable on, masterport on which port the master is running. The clientport specifies the port where the clients can reach the slave server. Publicip is used when the slave server is running behind a firewall and the ip which is required to connect to the slave server is not the same like on the interface of the slave server.

Command line options

To get the full options which are available on command line, use '-h'.

./PRIME-Server -h
PRIME Server v1.0.0

-h	Show help
-m	Server should start in master-mode
-s	Master IP to connect to when running in slave mode
-p	Port where the master service is running, either where the
	slave connects to, or the master server is listening on.
	Default port is 6666.
-c	Port number where the client can connect to, is used in both
	master and slave mode. Default port is 6667.
-i	Specifies the IP where the slave server should listening on.
	This needs to be the IP where the slaves can connect to (public
	IP if server is running behind a firewall.
-d      Set log level to DEBUG
-l      Set log level (LOG_DEBUG, LOG_INFO, LOG_NORMAL, LOG_ERROR, LOG_NOTHING)
-o      Set the log mode (LOGMODE_NOTHING, LOGMODE_FILE, LOGMODE_STDOUT, LOGMODE_BOTH)
-e	External port of a slave server. This is needed in case the
	slave server is running behind a firewall and the clientport
	differs from the public port on the public ip.
Clone this wiki locally