/**
 * 
 */
package oci.lib;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * @author marc
 *
 */
public class ServiceNameResolver {
	
	// localhost
	public final static byte[]			IPADDRESS		= {(byte) 127, (byte) 0, (byte) 0, (byte) 1};
	public	final static int			PORT			= 5533; // OCI name service port (DNS 53)

	
	
	public final static InetAddress getEdgeServiceIpAddress(String serviceName) {
		
		InetAddress ip = null;
		
		// get Edge Service IP address via OCI name resolution protocol (UDP)
		try {
			// TODO replace following line with OCI name service request 
			ip = InetAddress.getByAddress(IPADDRESS);
		} catch (UnknownHostException e) {
			e.printStackTrace();
		}
		
		return ip;
		
		
	} // getEdgeServiceIpAddress

}

@@ -263,17 +263,17 @@
 %0A%09public
-%09
+ 
 final st
@@ -283,16 +283,17 @@
 c int%09%09%09
+%09
 PORT%09%09%09=

format adaptation