Tried to get lobby working #story[1188]
This commit is contained in:
@@ -20,6 +20,7 @@ public class MatchBrowserClientRunnable implements RunnableWithFramePeriod {
|
||||
long previousFrameTime = System.currentTimeMillis();
|
||||
|
||||
while (!Thread.interrupted()) {
|
||||
System.out.println("Receiving");
|
||||
try{
|
||||
matchBrowserLobbyInterface.receiveGameInfo(socket);
|
||||
}catch (IOException e){
|
||||
|
||||
@@ -26,7 +26,7 @@ public class MatchBrowserInterface {
|
||||
|
||||
public MatchBrowserInterface() {
|
||||
try {//132.181.16.13 is the ip of the CI as of 13/9/17
|
||||
this.IPAddress = InetAddress.getByName("132.181.16.13"); //InetAddress.getLocalHost();
|
||||
this.IPAddress = InetAddress.getByName("umbrasheep.com"); //InetAddress.getLocalHost();
|
||||
} catch (UnknownHostException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
@@ -45,6 +45,7 @@ public class MatchBrowserLobbyInterface extends Observable {
|
||||
byte[] data = new byte[64];
|
||||
DatagramPacket receivedPacket = new DatagramPacket(data, 64);
|
||||
socket.receive(receivedPacket);
|
||||
System.out.println(receivedPacket);
|
||||
|
||||
HostedGamesRequestDecoder hostedGamesRequestDecoder = new HostedGamesRequestDecoder();
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user