Code example for LocalSocket

Methods: getFileDescriptor

0
	 * network connection 
	 *  
	 * @return 
	 */ 
	public FileDescriptor getFileDescriptor() {
		return mLocal.getFileDescriptor();
	} 
 
	/** 
	 * Shamelessly taken from 
	 * http://code.google.com/p/boxeeremote/wiki/AndroidUDP 
	 *  
	 * @return 
	 * @throws IOException 
	 */ 
	protected InetAddress getWifiBroadcastAddress(Context ctx)
			throws IOException { 
		WifiManager wifi = (WifiManager) ctx
				.getSystemService(Context.WIFI_SERVICE);
		DhcpInfo dhcp = wifi.getDhcpInfo();
		// handle null somehow