public final class StNetMnger2
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
StNetMnger2.IHandlerLikeNotify
类似 Handler 的事件通知接口
|
static class |
StNetMnger2.NetworkNode
网络节点
|
static class |
StNetMnger2.NetworkNodeTraffic
网络节点流量
|
static class |
StNetMnger2.PPPoEAccount
PPPOE帐号
|
static class |
StNetMnger2.PPPoETraffic
已过时。
Use
StNetMnger2.NetworkNodeTraffic instead. |
static class |
StNetMnger2.StConst |
static class |
StNetMnger2.StNetCfgInfo
网络配置信息
|
限定符和类型 | 方法和说明 |
---|---|
static void |
disableNcard()
禁用网卡
|
static void |
enableNcard()
启用网卡
|
static StNetMnger2.StNetCfgInfo |
getNCardProp()
获取网卡配置信息
|
static boolean |
getNCardState()
查看网卡当前状态
|
static java.lang.String |
getNetcardMAC()
获取网卡的MAC地址
|
static void |
setStaticIP(StNetMnger2.StNetCfgInfo nci,
StNetMnger2.IHandlerLikeNotify notify)
设置静态IP。
|
static boolean |
startDHCP(StNetMnger2.IHandlerLikeNotify notify)
启动DHCP,获取合法网络配置
|
static void |
startPPPoEDial(java.lang.String user,
java.lang.String pwd,
StNetMnger2.IHandlerLikeNotify notify)
启动PPPoE拨号。
|
static boolean |
stopPPPoEDial()
断开PPPoE连接
|
public static void setStaticIP(StNetMnger2.StNetCfgInfo nci, StNetMnger2.IHandlerLikeNotify notify)
nci
- 待设置的网卡属性 notify
- 设置通知接口 public static boolean startDHCP(StNetMnger2.IHandlerLikeNotify notify)
public static boolean getNCardState()
public static void startPPPoEDial(java.lang.String user, java.lang.String pwd, StNetMnger2.IHandlerLikeNotify notify)
user
- 用户名
pwd
- 密码
notify
- 信息回传对象
public static boolean stopPPPoEDial()
public static StNetMnger2.StNetCfgInfo getNCardProp()
public static StNetMnger2.StNetCfgInfo getPPPoEProp()
public static java.lang.String getNetcardMAC()
public static int getPPPoEState()
public static void disableNcard()
public static StNetMnger2.NetworkNodeTraffic getNetworkNodeCurrentTraffic(StNetMnger2.NetworkNode node)
node
- 网络节点@Deprecated public static StNetMnger2.PPPoETraffic getPPPoECurrentTraffic()
getNetworkNodeCurrentTraffic(NetworkNode)
instead.getNetworkNodeCurrentTraffic( StNetMnger2.NetworkNode )
public static StNetMnger2.PPPoEAccount getPPPoELatestAccount()
public static void enableNcard()
NICCannotOpen