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

class  NetworkTurnSocketHandler
 Base socket handler for all TURN TCP sockets. More...
 

Enumerations

enum  PacketTurnType : uint8_t { PACKET_TURN_TURN_ERROR , PACKET_TURN_SERCLI_CONNECT , PACKET_TURN_TURN_CONNECTED , PACKET_TURN_END }
 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 PacketTurnType : uint8_t

Enum with all types of TCP TURN packets.

The order MUST not be changed.

Enumerator
PACKET_TURN_TURN_ERROR 

TURN server is unable to relay.

PACKET_TURN_SERCLI_CONNECT 

Client or server is connecting to the TURN server.

PACKET_TURN_TURN_CONNECTED 

TURN server indicates the socket is now being relayed.

PACKET_TURN_END 

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

Definition at line 21 of file tcp_turn.h.