Code example for ServerSocket

Methods: getInetAddress

0
   public int getPort() { 
      return port;
   } 
 
   public String getAddress() {
      return serverSocket.getInetAddress().toString();
   } 
 
   @Override 
   public boolean isRunning() { 
      return connectionListener.isRunning();
   } 
 
   @Override 
   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