Code example for ServerSocket

Methods: close

0
 
	public void closeSocket() throws IOException{ 
 
		log.debug("Closing TCP socket monitor on address " + getAddressAndPort() + "...");
 
		this.serverSocket.close();
	} 
 
	public String getAddressAndPort(){
 
		return addr.getHostAddress() + ":" + port;
	} 
}