lib/src/main/java/edu/berkeley/boinc/rpc/RpcClient.java
public synchronized boolean networkAvailable() {
		mLastErrorMessage = null;
		try {
			sendRequest("<network_available/>\n");
			SimpleReplyParser parser = SimpleReplyParser.parse(receiveReply());
			if (parser == null)
				return false;
			mLastErrorMessage = parser.getErrorMessage();
			return parser.result();
		}
		catch (IOException e) {
			if(Logging.WARNING) Log.w(Logging.TAG, "error in networkAvailable()", e);
			return false;
		}
	}
/**
	 * Tells the BOINC core client that a network connection is available,
	 * and that it should do as much network activity as it can.
	 * @return true for success, false for failure
	 */
Tells the BOINC core client that a network connection is available,
and that it should do as much network activity as it can.
@return true for success, false for failure
Tells the BOINC core client that a network connection is available and that it should do as much network activity as it can . @return true for success false for failure
public synchronized boolean networkAvailable() {
		mLastErrorMessage = null;
		try {
			sendRequest("<network_available/>\n");
			SimpleReplyParser parser = SimpleReplyParser.parse(receiveReply());
			if (parser == null)
				return false;
			mLastErrorMessage = parser.getErrorMessage();
			return parser.result();
		}
		catch (IOException e) {
			if(Logging.WARNING) Log.w(Logging.TAG, "error in networkAvailable()", e);
			return false;
		}
	}
public synchronized boolean networkAvailable ( ) { mLastErrorMessage = null ; try { sendRequest ( "<network_available/>\n" ) ; SimpleReplyParser parser = SimpleReplyParser . parse ( receiveReply ( ) ) ; if ( parser == null ) return false ; mLastErrorMessage = parser . getErrorMessage ( ) ; return parser . result ( ) ; } catch ( IOException e ) { if ( Logging . WARNING ) Log . w ( Logging . TAG , "error in networkAvailable()" , e ) ; return false ; } }
Tells the BOINC core client that a network connection is available,
 and that it should do as much network activity as it can.
Tells the BOINC core client that a network connection is available and that it should do as much network activity as it can .