OpenTTD Source  1.11.2
network_client.h File Reference
#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...
 

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.
 
void NetworkClientSetCompanyPassword (const char *password)
 Set/Reset company password on the client side. More...
 

Variables

CompanyID _network_join_as
 Who would we like to join as.
 
const char * _network_join_server_password
 Login password from -p argument.
 
const char * _network_join_company_password
 Company password from -P argument.
 

Detailed Description

Client part of the network protocol.

Definition in file network_client.h.

Function Documentation

◆ NetworkClientSetCompanyPassword()

void NetworkClientSetCompanyPassword ( const char *  password)

Set/Reset company password on the client side.

Parameters
passwordPassword to be set.

Definition at line 1294 of file network_client.cpp.

References ClientNetworkGameSocketHandler::SendSetPassword().

Referenced by NetworkChangeCompanyPassword().