OpenTTD Source 20241224-master-gee860a5c8e
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

class  NetworkStunSocketHandler
 Base socket handler for all STUN TCP sockets. More...
 

Enumerations

enum  PacketStunType : uint8_t { PACKET_STUN_SERCLI_STUN , PACKET_STUN_END }
 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 PacketStunType : uint8_t

Enum with all types of TCP STUN packets.

The order MUST not be changed.

Enumerator
PACKET_STUN_SERCLI_STUN 

Send a STUN request to the STUN server.

PACKET_STUN_END 

Must ALWAYS be on the end of this list!! (period)

Definition at line 20 of file tcp_stun.h.