Removed test that took a manditory socket

This commit is contained in:
Fan-Wu Yang
2017-09-15 02:28:09 +12:00
parent f541a13235
commit 22e9db473e
2 changed files with 3 additions and 0 deletions
@@ -69,6 +69,7 @@ public class NetworkInterface {
byte[] message = encoder.encode(new HostGamesRequest(games));
System.out.println(LocalDateTime.now() + ": Sending " + games.size() + " game/s");
for(ClientAddress address: clientsAddresses) {
System.out.println("Sending to " + address.getIp());
serverSocket.send(new DatagramPacket(message, message.length, InetAddress.getByName(address.getIp()), 4941));
}
} catch (InvalidMessageException | IOException e) {