src/org/sipdroid/net/SipdroidSocket.java
changeset 830 c8b4ace735ea
parent 823 2036ebfaccda
child 834 e8d6255306f8
equal deleted inserted replaced
829:f703b3e14f9a 830:c8b4ace735ea
    40 		super(!loaded?port:0);
    40 		super(!loaded?port:0);
    41 		if (loaded) {
    41 		if (loaded) {
    42 			impl = new PlainDatagramSocketImpl();
    42 			impl = new PlainDatagramSocketImpl();
    43 			impl.create();
    43 			impl.create();
    44 			impl.bind(port,InetAddress.getByName("0"));
    44 			impl.bind(port,InetAddress.getByName("0"));
    45 			android.util.Log.d("TEST","name : " + InetAddress.getByName("0"));
       
    46 		}
    45 		}
    47 	}
    46 	}
    48 	
    47 	
    49 	public void close() {
    48 	public void close() {
    50 		super.close();
    49 		super.close();
    81 
    80 
    82 	static {
    81 	static {
    83 		        System.loadLibrary("OSNetworkSystem");
    82 		        System.loadLibrary("OSNetworkSystem");
    84 		        OSNetworkSystem.getOSNetworkSystem().oneTimeInitialization(true);
    83 		        OSNetworkSystem.getOSNetworkSystem().oneTimeInitialization(true);
    85 		        SipdroidSocket.loaded = true;
    84 		        SipdroidSocket.loaded = true;
    86 		        android.util.Log.d("OSNetworkSystem", "LOADED");
       
    87 			
       
    88 	}
    85 	}
    89 }
    86 }