MCPcopy Create free account
hub / github.com/ZDoom/Raze / NodesOnSameNetwork

Function NodesOnSameNetwork

source/common/engine/i_net.cpp:955–975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

953//
954
955static bool NodesOnSameNetwork()
956{
957 int net1;
958
959 net1 = PrivateNetOf(sendaddress[1].sin_addr);
960// Printf("net1 = %08x\n", net1);
961 if (net1 == 0)
962 {
963 return false;
964 }
965 for (int i = 2; i < doomcom.numnodes; ++i)
966 {
967 int net = PrivateNetOf(sendaddress[i].sin_addr);
968// Printf("Net[%d] = %08x\n", i, net);
969 if (net != net1)
970 {
971 return false;
972 }
973 }
974 return true;
975}
976
977//
978// I_InitNetwork

Callers 1

I_InitNetworkFunction · 0.85

Calls 1

PrivateNetOfFunction · 0.85

Tested by

no test coverage detected