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

Method Netchan_Init

qcommon/src/main/java/jake2/qcommon/network/Netchan.java:105–113  ·  view source on GitHub ↗

Netchan_Init.

()

Source from the content-addressed store, hash-verified

103 *
104 */
105 public static void Netchan_Init() {
106
107 // pick a port value that should be nice and random
108 long port = Timer.Milliseconds() & 0xffff;
109
110 showpackets = Cvar.getInstance().Get("showpackets", "0", 0);
111 showdrop = Cvar.getInstance().Get("showdrop", "0", 0);
112 qport = Cvar.getInstance().Get("qport", "" + port, Defines.CVAR_NOSET);
113 }
114
115 /**
116 * Out Of Band

Callers 2

InitMethod · 0.95
mainMethod · 0.95

Calls 3

MillisecondsMethod · 0.95
getInstanceMethod · 0.95
GetMethod · 0.80

Tested by

no test coverage detected