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

Function getDefaultGameProtocol

Engine/source/platform/platformNet.cpp:201–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199 }
200
201 S32 getDefaultGameProtocol()
202 {
203 // we turn off VDP in non-release builds because VDP does not support broadcast packets
204 // which are required for LAN queries (PC->Xbox connectivity). The wire protocol still
205 // uses the VDP packet structure, though.
206 S32 protocol = IPPROTO_UDP;
207#ifdef TORQUE_DISABLE_PC_CONNECTIVITY
208 // Xbox uses a VDP (voice/data protocol) socket for networking
209 protocol = IPPROTO_VDP;
210 useVDP = true;
211#endif
212
213 return protocol;
214 }
215
216 struct addrinfo* pickAddressByProtocol(struct addrinfo* addr, int protocol)
217 {

Callers 2

activateMethod · 0.85
openPortMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected