mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Changed port number and added standalone flag
- can use -standalone to just run the server - Changed port number as to not conflict with some web servers
This commit is contained in:
@@ -39,12 +39,18 @@ public class App extends Application
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
if (args.length == 1 && args[0].equals("-standalone")){
|
||||
return;
|
||||
}
|
||||
|
||||
if (args.length == 3 && args[0].equals("-server")){
|
||||
|
||||
sr = new StreamReceiver(args[1], Integer.valueOf(args[2]), "RaceStream");
|
||||
|
||||
} else if(args.length == 2 && args[0].equals("-server")){
|
||||
switch (args[1]) {
|
||||
case "internal":
|
||||
sr = new StreamReceiver("localhost", 8085, "RaceStream");
|
||||
sr = new StreamReceiver("localhost", 4949, "RaceStream");
|
||||
break;
|
||||
case "staffserver":
|
||||
sr = new StreamReceiver("csse-s302staff.canterbury.ac.nz", 4941, "RaceStream");
|
||||
@@ -56,7 +62,7 @@ public class App extends Application
|
||||
}
|
||||
//Change the StreamReceiver in this else block to change the default data source.
|
||||
else{
|
||||
sr = new StreamReceiver("localhost", 8085, "RaceStream");
|
||||
sr = new StreamReceiver("localhost", 4949, "RaceStream");
|
||||
}
|
||||
|
||||
sr.start();
|
||||
@@ -64,6 +70,9 @@ public class App extends Application
|
||||
streamParser.start();
|
||||
|
||||
launch(args);
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user