OpenTTD Source  20241121-master-g67a0fccfad
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

class  NetworkUDPSocketHandler
 Base socket handler for all UDP sockets. More...
 

Enumerations

enum  PacketUDPType : uint8_t { 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 : uint8_t

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.