Code example for InetAddress

Methods: getHostName

0
	private TimePoint endTime;
	 
	// constructor 
	public MonitorClient(InetAddress clientAddr, int clientPort, TimePoint endTime) 
			throws UnknownHostException { 
		this.clientAddr = clientAddr.getHostName();
		this.clientPort = clientPort;
		this.endTime = new TimePoint(endTime.getDate(), endTime.getHour(), endTime.getMin());
	} 
	 
	// get text client address 
	public String getClientAddress() {
		return this.clientAddr;
	} 
	 
	// get client port 
	public int getClientPort(){ 
		return this.clientPort;
	} 
	 
	public boolean finishMonitor(TimePoint current) {