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

Function getDefaultGameProtocol

Engine/source/platform/platformNet.cpp:247–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

activateMethod · 0.85
openPortMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected