aboutsummaryrefslogtreecommitdiff
path: root/modules/enet/networked_multiplayer_enet.h
diff options
context:
space:
mode:
authorFabio Alessandrelli2016-09-30 01:23:54 +0200
committerFabio Alessandrelli2016-09-30 02:48:25 +0200
commit8b9e5453a57e873d43d748d9acf16be4b7a1aa19 (patch)
treefe3b26cb7572efd5b393dbab569e55d473127577 /modules/enet/networked_multiplayer_enet.h
parentcb7661df942cfb423c5fe5090c1c114489905c34 (diff)
downloadgodot-8b9e5453a57e873d43d748d9acf16be4b7a1aa19.tar.gz
godot-8b9e5453a57e873d43d748d9acf16be4b7a1aa19.tar.zst
godot-8b9e5453a57e873d43d748d9acf16be4b7a1aa19.zip
Use 2 different ENet channels for reliable/unreliable packets
This avoids stalling other sequenced but unreliable packets (i.e. UNRELIABLE_ORDERED) when sending RELIABLE packets.
Diffstat (limited to '')
-rw-r--r--modules/enet/networked_multiplayer_enet.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/enet/networked_multiplayer_enet.h b/modules/enet/networked_multiplayer_enet.h
index 59863c1f7..f64db4561 100644
--- a/modules/enet/networked_multiplayer_enet.h
+++ b/modules/enet/networked_multiplayer_enet.h
@@ -23,6 +23,13 @@ private:
SYSMSG_REMOVE_PEER
};
+ enum {
+ SYSCH_CONFIG,
+ SYSCH_RELIABLE,
+ SYSCH_UNRELIABLE,
+ SYSCH_MAX
+ };
+
bool active;
bool server;