OpenTTD Source: src/network/network_client.h File Reference

OpenTTD Source 15.3

Data Structures | Typedefs | Functions | Variables
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

typedef ClientNetworkGameSocketHandler 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

NetworkJoinInfo _network_join
| extern

Information about the game to join to.

Definition at line 278 of file network_client.cpp.

Referenced by ClientGamePasswordRequestHandler::AskUserForPassword(), NetworkClientConnectGame(), NetworkClientJoinGame(), and ClientNetworkGameSocketHandler::Receive_SERVER_MAP_DONE().