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

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

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

Go to the source code of this file.

Data Structures

struct  IsEnumPacketType< PacketTurnType >
 Mark PacketTurnType as PacketType. More...
class  NetworkTurnSocketHandler
 Base socket handler for all TURN TCP sockets. More...

Enumerations

enum class  PacketTurnType : uint8_t { ServerError , ClientConnect , ServerConnected }
 Enum with all types of TCP TURN packets. More...

Detailed Description

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

Definition in file tcp_turn.h.

Enumeration Type Documentation

◆ PacketTurnType

enum class PacketTurnType : uint8_t
strong

Enum with all types of TCP TURN packets.

Attention
The order MUST not be changed.
Enumerator
ServerError 

TURN server is unable to relay.

ClientConnect 

Client (or OpenTTD server) is connecting to the TURN server.

ServerConnected 

TURN server indicates the socket is now being relayed.

Definition at line 22 of file tcp_turn.h.