类 Server


  • public class Server
    extends Object
    A server serves for both telnet access and http access
    • static initialize server
    • start server and bind port
    • close server
    • 方法详细资料

      • getInstance

        public static final Server getInstance()
      • setWelcome

        public void setWelcome(String welcome)
        welcome message
      • getPort

        public int getPort()
      • stop

        public void stop()
        close server
      • setPort

        public void setPort(int port)
      • isAcceptForeignIp

        public boolean isAcceptForeignIp()
      • setAcceptForeignIp

        public void setAcceptForeignIp(boolean acceptForeignIp)
      • getWelcome

        public String getWelcome()