¡@

Home 

2014/10/16 ¤W¤È 08:21:27

android Programming Glossary: pingerror

how to icmp ping on android

http://stackoverflow.com/questions/7451200/how-to-icmp-ping-on-android

static final String TAG Network.java public static String pingError null Ping a host and return an int value of 0 or 1 or 2 0 success.. n return getPingStats echo.toString else if exit 1 pingError failed exit 1 return null else pingError error exit 2 return.. else if exit 1 pingError failed exit 1 return null else pingError error exit 2 return null getPingStats interprets the text..

how to icmp ping on android

http://stackoverflow.com/questions/7451200/how-to-icmp-ping-on-android

import android.util.Log public class Network private static final String TAG Network.java public static String pingError null Ping a host and return an int value of 0 or 1 or 2 0 success 1 fail 2 error Does not work in Android emulator and.. String line while line buffer.readLine null echo.append line n return getPingStats echo.toString else if exit 1 pingError failed exit 1 return null else pingError error exit 2 return null getPingStats interprets the text result of a Linux.. echo.append line n return getPingStats echo.toString else if exit 1 pingError failed exit 1 return null else pingError error exit 2 return null getPingStats interprets the text result of a Linux ping command Set pingError on error and return..