* Request a listing of all public servers. */
| 503 | * Request a listing of all public servers. |
| 504 | */ |
| 505 | void ClientNetworkCoordinatorSocketHandler::GetListing() |
| 506 | { |
| 507 | this->Connect(); |
| 508 | |
| 509 | _network_game_list_version++; |
| 510 | |
| 511 | auto p = std::make_unique<Packet>(this, PACKET_COORDINATOR_CLIENT_LISTING); |
| 512 | p->Send_uint8(NETWORK_COORDINATOR_VERSION); |
| 513 | p->Send_uint8(NETWORK_GAME_INFO_VERSION); |
| 514 | p->Send_string(_openttd_revision); |
| 515 | p->Send_uint32(this->newgrf_lookup_table_cursor); |
| 516 | |
| 517 | Debug(net, 9, "Coordinator::SendGetListing({}, {})", _openttd_revision, this->newgrf_lookup_table_cursor); |
| 518 | this->SendPacket(std::move(p)); |
| 519 | } |
| 520 | |
| 521 | /** |
| 522 | * Join a server based on an invite code. |
no test coverage detected