Added comments describing how UDP behaves on the server
This commit is contained in:
parent
f2a28c2a8d
commit
c587088095
@ -140,6 +140,8 @@ class Server<C extends Connection> extends EndPointServer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (udpPort > 0) {
|
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();
|
udpBootstrap = new SessionBootstrap();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user