Code example for InetSocketAddress

Methods: getHostName, getPort

0
	private final ConnectionReversalTarget target;
 
	public ConnectionReversalServerSocket(UUID id, InetSocketAddress mediatorSocketAddress) throws IOException {
		ConnectionReversalTarget.Builder builder = new ConnectionReversalTarget.Builder(
				id.toString(), KEEPALIVE_INTERVAL, 
				mediatorSocketAddress.getHostName(),
				mediatorSocketAddress.getPort());
		target = builder.build();
	} 
	 
	public void register() throws IOException { 
		try { 
			target.register();
		} catch (Exception e) {
			throw new IOException(e);
		} 
	} 
	 
	@Override 
	public Socket accept() throws IOException {
		try {