Build 1.0_r1(from source)

android.os
Class NetStat

java.lang.Object
  extended by android.os.NetStat

public class NetStat
extends Object


Constructor Summary
NetStat()
           
 
Method Summary
static int netStatGetRxBytes()
          Get total number of rx bytes received through ppp0
static int netStatGetRxPkts()
          Get total number of rx packets received through ppp0
static int netStatGetTxBytes()
          Get total number of tx bytes received through ppp0
static int netStatGetTxPkts()
          Get total number of tx packets sent through ppp0
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetStat

public NetStat()
Method Detail

netStatGetTxPkts

public static int netStatGetTxPkts()
Get total number of tx packets sent through ppp0

Returns:
number of Tx packets through ppp0

netStatGetRxPkts

public static int netStatGetRxPkts()
Get total number of rx packets received through ppp0

Returns:
number of Rx packets through ppp0

netStatGetTxBytes

public static int netStatGetTxBytes()
Get total number of tx bytes received through ppp0

Returns:
number of Tx bytes through ppp0

netStatGetRxBytes

public static int netStatGetRxBytes()
Get total number of rx bytes received through ppp0

Returns:
number of Rx bytes through ppp0

Build 1.0_r1(from source)

Please submit a feedback, bug or feature