Minsker tiden klienten venter på svar fra en server

This commit is contained in:
Kristian Knarvik 2020-05-05 20:01:49 +02:00
parent d59c672c05
commit 061e94d876

View File

@ -36,7 +36,7 @@ public class RoboRallyClient {
* @throws IOException If the server cannot be connected to * @throws IOException If the server cannot be connected to
*/ */
public void connect(String ipAddress, int serverPort) throws IOException { public void connect(String ipAddress, int serverPort) throws IOException {
client.connect(5000, ipAddress, serverPort, serverPort); client.connect(1000, ipAddress, serverPort, serverPort);
} }
/** /**
@ -46,7 +46,7 @@ public class RoboRallyClient {
* @return A list of server ip addresses * @return A list of server ip addresses
*/ */
public List<InetAddress> getLanServers(int UDPPort) { public List<InetAddress> getLanServers(int UDPPort) {
return client.discoverHosts(UDPPort, 1000); return client.discoverHosts(UDPPort, 500);
} }
/** /**