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