summaryrefslogtreecommitdiff
path: root/src/window_type.h
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-05-05 10:47:01 +0200
committerPatric Stout <github@truebrain.nl>2021-07-20 19:57:23 +0200
commitfa1e27994dd1284f6fefbe08c47a5c4145ccf00d (patch)
treebbe8fab946192e5667ef176673590d2fae60e969 /src/window_type.h
parent8a361340037d6908c9a4df10aefdb58860a22b80 (diff)
downloadopenttd-fa1e27994dd1284f6fefbe08c47a5c4145ccf00d.tar.xz
Feature: allow the use of TURN to connect client and server together
TURN is a last resort, used only if all other methods failed. TURN is a relay approach to connect client and server together, where openttd.org (by default) is the middleman. It is very unlikely either the client or server cannot connect to the STUN server, as they are both already connected to the Game Coordinator. But in the odd case it does fail, estabilishing the connection fails without any further possibility to recover.
Diffstat (limited to 'src/window_type.h')
-rw-r--r--src/window_type.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/window_type.h b/src/window_type.h
index 2b486fbdf..00aaaf1fd 100644
--- a/src/window_type.h
+++ b/src/window_type.h
@@ -479,6 +479,12 @@ enum WindowClass {
WC_NETWORK_STATUS_WINDOW,
/**
+ * Network ask relay window; %Window numbers:
+ * - 0 - #NetworkAskRelayWidgets
+ */
+ WC_NETWORK_ASK_RELAY,
+
+ /**
* Chatbox; %Window numbers:
* - #DestType = #NetWorkChatWidgets
*/