OpenTTD Source: src/network/core/udp.h File Reference

OpenTTD Source 13.2.1

Data Structures | Enumerations
udp.h File Reference
`#include "address.h"`
`#include "packet.h"`

Go to the source code of this file.

## Data Structures
class | NetworkUDPSocketHandler
| Base socket handler for all UDP sockets. More...

## Enumerations
enum | PacketUDPType { PACKET_UDP_CLIENT_FIND_SERVER, PACKET_UDP_SERVER_RESPONSE, PACKET_UDP_END }
| 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 PacketUDPType

Enum with all types of UDP packets.

The order MUST not be changed

Enumerator
PACKET_UDP_CLIENT_FIND_SERVER | Queries a game server for game information.
PACKET_UDP_SERVER_RESPONSE | Reply of the game server with game information.
PACKET_UDP_END | Must ALWAYS be on the end of this list!! (period)

Definition at line 19 of file udp.h.