updating match table to store ip and port of clients and hosts

#story[1188]
This commit is contained in:
hba56
2017-08-31 13:45:04 +12:00
parent 960b1213fb
commit 9161f69547
8 changed files with 99 additions and 26 deletions
@@ -9,11 +9,9 @@ import network.Messages.Enums.MessageType;
import network.Messages.HostGamesRequest;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.net.*;
import java.util.ArrayList;
import java.util.Enumeration;
/**
* UDP interface for the matchBrowser to send out hosted game info and get in other hosts info
@@ -31,6 +29,7 @@ public class MatchBrowserInterface {
try {
this.IPAddress = InetAddress.getByName("localhost");
} catch (UnknownHostException e) {
e.printStackTrace();
}
this.port = 3779;
}