MCPcopy Create free account
hub / github.com/catabriga/graphwar / joinGlobalServer

Method joinGlobalServer

src/RoomServer/GlobalClient.java:68–79  ·  view source on GitHub ↗
(String ip, int port, String playerName)

Source from the content-addressed store, hash-verified

66
67
68 public void joinGlobalServer(String ip, int port, String playerName) throws IOException
69 {
70 connection = new Connection(ip, port);
71
72 // This is not encoded because the dummy name constants is already encoded
73 connection.sendMessage(playerName);
74
75 this.localPlayer = playerName;
76
77 this.running = true;
78 new Thread(this).start();
79 }
80
81 public boolean isRoomInvalid()
82 {

Callers 1

RoomMethod · 0.45

Calls 2

startMethod · 0.80
sendMessageMethod · 0.45

Tested by

no test coverage detected