Code example for ServerSocket

Methods: getInetAddress

   public int getPort() { 
      return port;
   public String getAddress() {
      return serverSocket.getInetAddress().toString();
   public boolean isRunning() { 
      return connectionListener.isRunning();
   public String describe() {
      return "TCP on port " + port;
    * The listener interface for receiving connection events. The class that is interested in processing a connection event 
    * implements this interface, and the object created with that class is registered with a component using the component's