Change default port to 4940

#story[956] #pair[wmu16, mra106]
This commit is contained in:
Michael Rausch
2017-05-25 16:56:41 +12:00
parent 49e4c92da6
commit acbaa838ec
+14 -1
View File
@@ -4,6 +4,8 @@ import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
import javafx.stage.Stage;
import seng302.models.PolarTable;
import seng302.models.stream.StreamParser;
@@ -32,6 +34,8 @@ public class App extends Application {
}
public static void main(String[] args) {
try {
StreamReceiver sr = null;
new ServerThread("Racevision Test Server");
@@ -65,12 +69,21 @@ public class App extends Application {
}
//Change the StreamReceiver in this else block to change the default data source.
else {
sr = new StreamReceiver("localhost", 4949, "RaceStream");
sr = new StreamReceiver("livedata.americascup.com", 4940, "RaceStream");
}
sr.start();
StreamParser streamParser = new StreamParser("StreamParser");
streamParser.start();
}
catch (Exception e){
Alert alert = new Alert(AlertType.INFORMATION);
alert.setTitle("Information Dialog");
alert.setHeaderText("Fatal Error");
alert.setContentText("There was an error connecting to the AC35 stream");
alert.showAndWait();
}
launch(args);