updating match table to store ip and port of clients and hosts
#story[1188]
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user