OpenTTD Source 20260206-master-g4d4e37dbf1
network_client.h File Reference

Client part of the network protocol. More...

#include "network_internal.h"

Go to the source code of this file.

Data Structures

class  ClientNetworkGameSocketHandler
 Class for handling the client side of the game connection. More...
struct  NetworkJoinInfo
 Information required to join a server. More...

Typedefs

typedef ClientNetworkGameSocketHandler MyClient
 Helper to make the code look somewhat nicer.

Functions

void NetworkClient_Connected ()
 Is called after a client is connected to the server.

Variables

NetworkJoinInfo _network_join
 Information about the game to join to.

Detailed Description

Client part of the network protocol.

Definition in file network_client.h.

Typedef Documentation

◆ MyClient

Helper to make the code look somewhat nicer.

Definition at line 104 of file network_client.h.

Function Documentation

◆ NetworkClient_Connected()

void NetworkClient_Connected ( )

Is called after a client is connected to the server.

Definition at line 1187 of file network_client.cpp.

References _frame_counter, _frame_counter_server, Debug, last_ack_frame, and ClientNetworkGameSocketHandler::SendJoin().

Referenced by TCPClientConnecter::OnConnect().

Variable Documentation

◆ _network_join