Class PlayerGateway

java.lang.Object
io.github.protasm.jvmud.communication.transport.telnet.PlayerGateway
All Implemented Interfaces:
AutoCloseable

public final class PlayerGateway extends Object implements AutoCloseable
Direct mudlib player listener: relays bytes to its worker until disconnection.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
    Connection factory retains worker details outside transport.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PlayerGateway(String address, int port, PlayerGateway.Connect connect)
    Reserves a player port without accepting sessions until start is called.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes the listener and both sides of every active relay.
    int
    Actual bound player port, including ephemeral allocations.
    void
    Opens player admission after all endpoints in the pair have been bound successfully.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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:
      close in interface AutoCloseable