OpenTTD Source  1.11.0-beta2
host.cpp File Reference
#include "../../stdafx.h"
#include "../../debug.h"
#include "address.h"
#include "../../safeguards.h"
#include "../../string_func.h"

Go to the source code of this file.

Functions

static void NetworkFindBroadcastIPsInternal (NetworkAddressList *broadcast)
 Internal implementation for finding the broadcast IPs. More...
 
void NetworkFindBroadcastIPs (NetworkAddressList *broadcast)
 Find the IPv4 broadcast addresses; IPv6 uses a completely different strategy for broadcasting. More...
 

Detailed Description

Functions related to getting host specific data (IPs).

Definition in file host.cpp.

Function Documentation

◆ NetworkFindBroadcastIPs()

void NetworkFindBroadcastIPs ( NetworkAddressList broadcast)

Find the IPv4 broadcast addresses; IPv6 uses a completely different strategy for broadcasting.

Parameters
broadcastthe list of broadcasts to write into.

Definition at line 194 of file host.cpp.

References DEBUG, NETWORK_DEFAULT_PORT, and NetworkFindBroadcastIPsInternal().

◆ NetworkFindBroadcastIPsInternal()

static void NetworkFindBroadcastIPsInternal ( NetworkAddressList broadcast)
static

Internal implementation for finding the broadcast IPs.

This function is implemented multiple times for multiple targets.

Parameters
broadcastthe list of broadcasts to write into.

Definition at line 148 of file host.cpp.

References lastof, and strecpy().

Referenced by NetworkFindBroadcastIPs().