MCPcopy Create free account
hub / github.com/demoth/jake2 / Config

Method Config

qcommon/src/main/java/jake2/qcommon/network/NET.java:205–218  ·  view source on GitHub ↗

Config multi or singlepalyer - A single player game will only use the loopback code.

(boolean multiplayer)

Source from the content-addressed store, hash-verified

203 * Config multi or singlepalyer - A single player game will only use the loopback code.
204 */
205 public static void Config(boolean multiplayer) {
206 if (!multiplayer) {
207 // shut down any existing sockets
208 for (int i = 0; i < 2; i++) {
209 if (ip_sockets[i] != null) {
210 ip_sockets[i].close();
211 ip_sockets[i] = null;
212 }
213 }
214 } else {
215 // open sockets
216 OpenIP();
217 }
218 }
219
220 /*
221 * Socket

Callers 4

CLClass · 0.95
SV_KillServer_fMethod · 0.95
SV_Map_fMethod · 0.95
ShutdownMethod · 0.95

Calls 1

OpenIPMethod · 0.95

Tested by

no test coverage detected