OpenTTD Source  20241120-master-g6d3adc6169
network.h File Reference

Basic functions/variables used all over the place. More...

Go to the source code of this file.

Functions

void NetworkStartUp ()
 This tries to launch the network for a given OS.
 
void NetworkShutDown ()
 This shuts the network down.
 
void NetworkDrawChatMessage ()
 Draw the chat message-box.
 
bool HasClients ()
 Return whether there is any client connected or trying to connect at all. More...
 

Variables

bool _networking
 are we in networking mode?
 
bool _network_server
 network-server is active
 
bool _network_available
 is network mode available?
 
bool _network_dedicated
 are we a dedicated server?
 
bool _is_network_server
 Does this client wants to be a network-server?
 

Detailed Description

Basic functions/variables used all over the place.

Definition in file network.h.

Function Documentation

◆ HasClients()

bool HasClients ( )

Return whether there is any client connected or trying to connect at all.

Returns
whether we have any client activity

Definition at line 97 of file network.cpp.