OpenTTD Source: src/network/core/tcp_stun.h File Reference

OpenTTD Source 13.1

Data Structures | Enumerations
tcp_stun.h File Reference
`#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 { 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

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.