OpenTTD Source 20260311-master-g511d3794ce
udp.h File Reference

Basic functions to receive and send UDP packets. More...

#include "address.h"
#include "packet.h"

Go to the source code of this file.

Data Structures

struct  IsEnumPacketType< PacketUDPType >
 Mark PacketUDPType as PacketType. More...
class  NetworkUDPSocketHandler
 Base socket handler for all UDP sockets. More...

Enumerations

enum class  PacketUDPType : uint8_t { ClientFindServer , ServerResponse }
 Enum with all types of UDP packets. More...

Detailed Description

Basic functions to receive and send UDP packets.

Definition in file udp.h.

Enumeration Type Documentation

◆ PacketUDPType

enum class PacketUDPType : uint8_t
strong

Enum with all types of UDP packets.

Attention
The order MUST not be changed.
Enumerator
ClientFindServer 

Queries a game server for game information.

ServerResponse 

Reply of the game server with game information.

Definition at line 20 of file udp.h.