mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
la til egenskap til å koble til en server
This commit is contained in:
parent
40031f264c
commit
2cc8cd8d69
@ -8,11 +8,11 @@ import inf112.fiasko.roborally.utility.NetworkUtil;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
public class RoboRallyClient {
|
public class RoboRallyClient {
|
||||||
public RoboRallyClient() throws IOException {
|
public RoboRallyClient(String IPaddresse) throws IOException {
|
||||||
Client client = new Client();
|
Client client = new Client();
|
||||||
client.start();
|
client.start();
|
||||||
NetworkUtil.registerClasses(client.getKryo());
|
NetworkUtil.registerClasses(client.getKryo());
|
||||||
client.connect(5000, "127.0.0.1", 54555, 54777);
|
client.connect(5000, IPaddresse, 54555, 54777);
|
||||||
|
|
||||||
SomeRequest request = new SomeRequest();
|
SomeRequest request = new SomeRequest();
|
||||||
request.text = "Here is the request";
|
request.text = "Here is the request";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user