OpenTTD: src/network/network_client.h File Reference

OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

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...

## 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.

## 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.

## Typedef Documentation

typedef ClientNetworkGameSocketHandler MyClient

Helper to make the code look somewhat nicer.

Definition at line 111 of file network_client.h.

## Function Documentation

void NetworkClientSetCompanyPassword | ( | const char * | password | ) |

Set/Reset company password on the client side.

Parameters

  password | Password to be set.

Definition at line 1261 of file network_client.cpp.

References ClientNetworkGameSocketHandler::SendSetPassword().

Referenced by NetworkChangeCompanyPassword().

## Variable Documentation

CompanyID _network_join_as

Who would we like to join as.

Definition at line 298 of file network_client.cpp.