Class PlayerGateway
java.lang.Object
io.github.protasm.jvmud.communication.transport.telnet.PlayerGateway
- All Implemented Interfaces:
AutoCloseable
Direct mudlib player listener: relays bytes to its worker until disconnection.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceConnection factory retains worker details outside transport. -
Constructor Summary
ConstructorsConstructorDescriptionPlayerGateway(String address, int port, PlayerGateway.Connect connect) Reserves a player port without accepting sessions until start is called. -
Method Summary
-
Constructor Details
-
PlayerGateway
Reserves a player port without accepting sessions until start is called.- Throws:
IOException
-
-
Method Details
-
start
public void start()Opens player admission after all endpoints in the pair have been bound successfully. -
port
public int port()Actual bound player port, including ephemeral allocations. -
close
public void close()Closes the listener and both sides of every active relay.- Specified by:
closein interfaceAutoCloseable
-