| 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 | { |