MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / getDefaultGameProtocol

Function getDefaultGameProtocol

engine/source/platform/platformNet.cpp:244–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242 }
243
244 S32 getDefaultGameProtocol()
245 {
246 // we turn off VDP in non-release builds because VDP does not support broadcast packets
247 // which are required for LAN queries (PC->Xbox connectivity). The wire protocol still
248 // uses the VDP packet structure, though.
249 S32 protocol = IPPROTO_UDP;
250 bool useVDP = false;
251#ifdef TORQUE_DISABLE_PC_CONNECTIVITY
252 // Xbox uses a VDP (voice/data protocol) socket for networking
253 protocol = IPPROTO_VDP;
254 useVDP = true;
255#endif
256
257 return protocol;
258 }
259
260 struct addrinfo* pickAddressByProtocol(struct addrinfo* addr, int protocol)
261 {

Callers 2

activateMethod · 0.85
openPortMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected