Switched port back to 4942
#story[778]
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
package seng302.Networking;
|
||||
import com.sun.xml.internal.bind.v2.runtime.output.SAXOutput;
|
||||
|
||||
import seng302.Networking.MessageEncoders.RaceVisionByteEncoder;
|
||||
import seng302.Networking.MessageEncoders.XMLMessageEncoder;
|
||||
import seng302.Networking.Utils.BoatLocationMessage;
|
||||
import seng302.Networking.Utils.MessageType;
|
||||
|
||||
import java.io.*;
|
||||
@@ -15,7 +14,6 @@ import java.util.ArrayList;
|
||||
public class MockOutput implements Runnable
|
||||
{
|
||||
private long lastHeartbeatTime;
|
||||
|
||||
private RaceVisionByteEncoder messageEncoder = new RaceVisionByteEncoder();
|
||||
|
||||
//socket port 4942 as 4940 is ac35 live port and 4941 is ac35 test port
|
||||
@@ -30,17 +28,14 @@ public class MockOutput implements Runnable
|
||||
private short xmlSequenceNumber = 1;
|
||||
private int heartbeatSequenceNum = 1;
|
||||
|
||||
|
||||
|
||||
MockOutput() throws IOException {
|
||||
public MockOutput() throws IOException {
|
||||
/**************sockets*******************/
|
||||
//start Time
|
||||
lastHeartbeatTime = System.currentTimeMillis();
|
||||
|
||||
|
||||
// mockSocket = new Socket("localhost", 4942);
|
||||
serverSocket = new ServerSocket(4942);
|
||||
// mockSocket = serverSocket.accept();
|
||||
|
||||
|
||||
}
|
||||
/**
|
||||
|
||||
@@ -32,9 +32,6 @@ public class VisualiserInput
|
||||
|
||||
VisualiserInput() throws IOException{
|
||||
|
||||
ServerSocket visualiserSocket = new ServerSocket(4945);
|
||||
Socket connectionSocket = visualiserSocket.accept();
|
||||
|
||||
Socket connectionSocket = new Socket(InetAddress.getLocalHost(), 4942);
|
||||
|
||||
//this is the test data that streams form the AC35 website
|
||||
|
||||
Reference in New Issue
Block a user