|
OpenTTD Source 20260621-master-g720d10536d
|
Basic functions to receive and send TCP packets to/from the Game Coordinator server. More...
Go to the source code of this file.
Data Structures | |
| struct | IsEnumPacketType< PacketCoordinatorType > |
| Mark PacketCoordinatorType as PacketType. More... | |
| class | NetworkCoordinatorSocketHandler |
| Base socket handler for all Game Coordinator TCP sockets. More... | |
Enumerations | |
| enum class | PacketCoordinatorType : uint8_t { GameCoordinatorError , ServerRegister , GameCoordinatorRegisterAck , ServerUpdate , ClientListing , GameCoordinatorListing , ClientConnect , GameCoordinatorConnecting , ServerOrClientConnectFailed , GameCoordinatorConnectFailed , ClientConnected , GameCoordinatorDirectConnect , GameCoordinatorStunRequest , ServerOrClientStunResult , GameCoordinatorStunConnect , GameCoordinatorNewGRFLookup , GameCoordinatorTurnConnect } |
| Enum with all types of TCP Game Coordinator packets. More... | |
| enum class | ConnectionType : uint8_t { Unknown , Isolated , Direct , Stun , Turn } |
| The type of connection the Game Coordinator can detect we have. More... | |
| enum class | NetworkCoordinatorErrorType : uint8_t { Unknown , RegistrationFailed , InvalidInviteCode , ReuseOfInviteCode } |
| The type of error from the Game Coordinator. More... | |
Basic functions to receive and send TCP packets to/from the Game Coordinator server.
Definition in file tcp_coordinator.h.
|
strong |
The type of connection the Game Coordinator can detect we have.
| Enumerator | |
|---|---|
| Unknown | The Game Coordinator hasn't informed us yet what type of connection we have. |
| Isolated | The Game Coordinator failed to find a way to connect to your server. Nobody will be able to join. |
| Direct | The Game Coordinator can directly connect to your server. |
| Stun | The Game Coordinator can connect to your server via a STUN request. |
| Turn | The Game Coordinator needs you to connect to a relay. |
Definition at line 55 of file tcp_coordinator.h.
|
strong |
The type of error from the Game Coordinator.
Definition at line 66 of file tcp_coordinator.h.
|
strong |
Enum with all types of TCP Game Coordinator packets.
GameCoordinator -> packets from Game Coordinator to either Client or Server. Server -> packets from Server to Game Coordinator. Client -> packets from Client to Game Coordinator. ServerOrClient -> packets from either the Server or Client to Game Coordinator.
| Enumerator | |
|---|---|
| GameCoordinatorError | Game Coordinator indicates there was an error. |
| ServerRegister | Server registration. |
| GameCoordinatorRegisterAck | Game Coordinator accepts the registration. |
| ServerUpdate | Server sends an set intervals an update of the server. |
| ClientListing | Client is requesting a listing of all public servers. |
| GameCoordinatorListing | Game Coordinator returns a listing of all public servers. |
| ClientConnect | Client wants to connect to a server based on an invite code. |
| GameCoordinatorConnecting | Game Coordinator informs the client of the token assigned to the connection attempt. |
| ServerOrClientConnectFailed | Client/server tells the Game Coordinator the current connection attempt failed. |
| GameCoordinatorConnectFailed | Game Coordinator informs client/server it has given up on the connection attempt. |
| ClientConnected | Client informs the Game Coordinator the connection with the server is established. |
| GameCoordinatorDirectConnect | Game Coordinator tells client to directly connect to the hostname:port of the server. |
| GameCoordinatorStunRequest | Game Coordinator tells client/server to initiate a STUN request. |
| ServerOrClientStunResult | Client/server informs the Game Coordinator of the result of the STUN request. |
| GameCoordinatorStunConnect | Game Coordinator tells client/server to connect() reusing the STUN local address. |
| GameCoordinatorNewGRFLookup | Game Coordinator informs client about NewGRF lookup table updates needed for GC_LISTING. |
| GameCoordinatorTurnConnect | Game Coordinator tells client/server to connect to a specific TURN server. |
Definition at line 28 of file tcp_coordinator.h.