Code example for ServerSocket

Methods: getInetAddress

0
this.listener = null;
	} 
 
	public InetAddress get_address() {
		return this.listener.getInetAddress();
	} 
	 
	public void set_address(InetAddress new_address) {
		addr = new_address;
	} 
 
	public String get_port() {
		if (this.listener == null)
		{ 
			handler.debug("GenericServer.get_port", "Port requested when listener is null");
			return ""; 
		} 
		return Integer.toString(this.listener.getLocalPort());
	}