Class TelnetServer
java.lang.Object
io.github.protasm.jvmud.communication.transport.telnet.TelnetServer
- All Implemented Interfaces:
AutoCloseable
Private worker listener for one ready mudlib; public player admission belongs to the engine gateway.
-
Constructor Summary
ConstructorsConstructorDescriptionTelnetServer(InstanceHost mud, String workerSecret) Creates a loopback worker listener authenticated by the engine's private relay secret. -
Method Summary
Modifier and TypeMethodDescriptionvoidawait()Waits for the listener thread to finish.Returns the actual bound address, or the requested address before startup.voidclose()Closes sockets to release blocked readers, then waits for session detach work.intport()Returns the actual bound port, or the requested port before startup.voidstart()Binds the listener and starts accepting player connections.
-
Constructor Details
-
TelnetServer
Creates a loopback worker listener authenticated by the engine's private relay secret.
-
-
Method Details
-
start
Binds the listener and starts accepting player connections.- Throws:
IOException
-
await
-
bindAddress
Returns the actual bound address, or the requested address before startup. -
port
public int port()Returns the actual bound port, or the requested port before startup. -
close
public void close()Closes sockets to release blocked readers, then waits for session detach work.- Specified by:
closein interfaceAutoCloseable
-