MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / setupPortBitMask

Function setupPortBitMask

engine/Poseidon/Network/NetTransportNet.cpp:118–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 {
117 pool = nullptr;
118 }
119}
120
121static void setupPortBitMask(BitMask& mask, bool server)
122{
123 mask.empty();
124 if (!server && IsDedicatedServer())
125 {
126 mask.on(0);
127 return;
128 }
129
130 int port = GetNetworkPort() + (server ? 0 : 2);
131 int i;
132 if (server && ::Poseidon::GetPidFileName().GetLength())
133 {
134 mask.on(port);
135 }
136 else
137 {

Callers 2

getClientPeerFunction · 0.85
getServerPeerFunction · 0.85

Calls 5

GetNetworkPortFunction · 0.85
GetPidFileNameFunction · 0.85
onMethod · 0.80
emptyMethod · 0.45
GetLengthMethod · 0.45

Tested by

no test coverage detected