From c5870880952f0ce17019cb7cf76512eac253aa2a Mon Sep 17 00:00:00 2001 From: nathan Date: Sat, 24 Mar 2018 00:24:20 +0100 Subject: [PATCH] Added comments describing how UDP behaves on the server --- src/dorkbox/network/Server.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dorkbox/network/Server.java b/src/dorkbox/network/Server.java index bac590bb..85052e76 100644 --- a/src/dorkbox/network/Server.java +++ b/src/dorkbox/network/Server.java @@ -140,6 +140,8 @@ class Server extends EndPointServer { } if (udpPort > 0) { + // This is what allows us to have UDP behave "similar" to TCP, in that a session is established based on the port/ip of the + // remote connection. This allows us to reuse channels and have "state" for a UDP connection that normally wouldn't exist. udpBootstrap = new SessionBootstrap(); } else {