/**
 * 
 */
package oci.lib;

/**
 * @author Marc Koerner
 * This class contains all OCI framework constants
 */
public final class GlobalConstants {
	
	public final static byte[]			LOCALHOST_BYTE				= {(byte) 127, (byte) 0, (byte) 0, (byte) 1}; 	// LOCIC IP (first iteration)
	public final static String			LOCALHOST_STRING			= "localhost";
	public final static String			LOCALHOST_STRING_BYTE		= "127.0.0.1";
	public final static String			C10_DNS_STRING				= "c10.millennium.berkeley.edu";
	public final static byte[]			MININET_VM1_BYTE			= {(byte) 192, (byte) 168, (byte) 0, (byte) 10};
	
	public final static byte[]			LOCIC_IP_BYTE				= LOCALHOST_BYTE;
	public final static String			LOCIC_IP_STRING				= C10_DNS_STRING;

	
	public final static int				PORT_NAME_SERVICE			= 5533; 										// OCI name service port (DNS 53)
	public final static int				PORT_NAME_REGISTRATION		= PORT_NAME_SERVICE + 1; 						// Port 5534 / Name Service Registration 
	
    public final static int				SOCKET_TIMEOUT				= 5000;											// 5 seconds timeout

} // class

@@ -145,17 +145,20 @@
 nts %7B%0A%09%0A
-%09
+    
 public f
@@ -175,19 +175,21 @@
 c byte%5B%5D
-%09%09%09
+     
 LOCALHOS
@@ -194,20 +194,27 @@
 OST_BYTE
-%09%09%09%09
+           
 = %7B(byte
@@ -251,17 +251,16 @@
 te) 1%7D; 
-%09
 // LOCIC
@@ -281,17 +281,20 @@
 ration)%0A
-%09
+    
 public f
@@ -303,35 +303,37 @@
 al static String
-%09%09%09
+     
 LOCALHOST_STRING
@@ -332,19 +332,25 @@
 T_STRING
-%09%09%09
+         
 = %22local
@@ -356,17 +356,20 @@
 lhost%22;%0A
-%09
+    
 public f
@@ -386,19 +386,21 @@
 c String
-%09%09%09
+     
 LOCALHOS
@@ -412,18 +412,20 @@
 ING_BYTE
-%09%09
+    
 = %22127.0
@@ -431,17 +431,20 @@
 0.0.1%22;%0A
-%09
+    
 public f
@@ -461,19 +461,21 @@
 c String
-%09%09%09
+     
 C10_DNS_
@@ -480,20 +480,27 @@
 S_STRING
-%09%09%09%09
+           
 = %22c10.m
@@ -524,17 +524,20 @@
 y.edu%22;%0A
-%09
+    
 public f
@@ -554,19 +554,21 @@
 c byte%5B%5D
-%09%09%09
+     
 MININET_
@@ -575,19 +575,25 @@
 VM1_BYTE
-%09%09%09
+         
 = %7B(byte
@@ -635,17 +635,103 @@
  10%7D;%0A%09%0A
-%09
+    public final static String     GOCIC_DNS_NAME           = %22localhost%22;      %0A%09%0A    
 public f
@@ -748,19 +748,21 @@
 c byte%5B%5D
-%09%09%09
+     
 LOCIC_IP
@@ -766,20 +766,28 @@
 _IP_BYTE
-%09%09%09%09
+            
 = LOCALH
@@ -796,17 +796,20 @@
 T_BYTE;%0A
-%09
+    
 public f
@@ -826,19 +826,21 @@
 c String
-%09%09%09
+     
 LOCIC_IP
@@ -846,20 +846,26 @@
 P_STRING
-%09%09%09%09
+          
 = C10_DN
@@ -879,11 +879,12 @@
 G;%0A%0A
-%09%0A%09
+    
 publ
@@ -894,36 +894,40 @@
 final static int
-%09%09%09%09
+        
 PORT_NAME_SERVIC
@@ -931,29 +931,24 @@
 VICE
-%09%09%09= 5533; %09%09%09%09%09%09%09%09%09%09
+        = 5533; 
 // O
@@ -977,17 +977,20 @@
 DNS 53)%0A
-%09
+    
 public f
@@ -1004,20 +1004,24 @@
 atic int
-%09%09%09%09
+        
 PORT_NAM
@@ -1034,18 +1034,19 @@
 STRATION
-%09%09
+   
 = PORT_N
@@ -1062,22 +1062,16 @@
 CE + 1; 
-%09%09%09%09%09%09
 // Port 
@@ -1133,20 +1133,24 @@
 atic int
-%09%09%09%09
+        
 SOCKET_T
@@ -1159,30 +1159,27 @@
 EOUT
-%09%09%09%09= 5000;%09%09%09%09%09%09%09%09%09%09%09
+           = 5000; 
 // 5

refactor and added const. for new name resolution mecanisem