OpenTTD Source 20260219-master-g698dc9cb08
tcp_stun.h File Reference

Basic functions to receive and send TCP packets to/from the STUN server. More...

#include "os_abstraction.h"
#include "tcp.h"
#include "packet.h"

Go to the source code of this file.

Data Structures

struct  IsEnumPacketType< PacketStunType >
 Mark PacketStunType as PacketType. More...
class  NetworkStunSocketHandler
 Base socket handler for all STUN TCP sockets. More...

Enumerations

enum class  PacketStunType : uint8_t { ClientStun }
 Enum with all types of TCP STUN packets. More...

Detailed Description

Basic functions to receive and send TCP packets to/from the STUN server.

Definition in file tcp_stun.h.

Enumeration Type Documentation

◆ PacketStunType

enum class PacketStunType : uint8_t
strong

Enum with all types of TCP STUN packets.

Attention
The order MUST not be changed.
Enumerator
ClientStun 

Send a STUN request to the STUN server.

Definition at line 21 of file tcp_stun.h.