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