public final class StNetMnger
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
StNetMnger.NetworkNode
Network Node
|
static class |
StNetMnger.NetworkNodeTraffic
network node traffic
|
static class |
StNetMnger.PPPoEAccount
|
static class |
StNetMnger.PPPoETraffic
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
disableNcard()
Disable the network card
|
static void |
enableNcard()
Enable the network card
|
static StNetCfgInfo |
getNCardProp()
Get network card configuration information
|
static boolean |
getNCardState()
View current status of network card
|
static java.lang.String |
getNetcardMAC()
Get the netcard MAC.
|
static StNetMnger.NetworkNodeTraffic |
getNetworkNodeCurrentTraffic(StNetMnger.NetworkNode node)
|
static StNetMnger.PPPoETraffic |
getPPPoECurrentTraffic()
Deprecated.
|
static StNetMnger.PPPoEAccount |
getPPPoELatestAccount()
|
static StNetCfgInfo |
getPPPoEProp()
Get the network configuration information after PPPoE dial-up successful.
|
static int |
getPPPoEState()
get PPPoE State
|
static void |
setStaticIP(StNetCfgInfo nci,
IHandlerLikeNotify notify)
Set static IP.Asynchronous function, setting results can be obtained through the notify interfaces.
|
static boolean |
startDHCP(IHandlerLikeNotify notify)
Start DHCP, obtain legal network configuration
|
static void |
startPPPoEDial(java.lang.String user,
java.lang.String pwd,
IHandlerLikeNotify notify)
Start PPPoE dialing.
|
static boolean |
stopPPPoEDial()
Disconnect PPPoE
|
public static void setStaticIP(StNetCfgInfo nci, IHandlerLikeNotify notify)
nci
- properties to be setnotify
- set notification interfacepublic static boolean startDHCP(IHandlerLikeNotify notify)
public static boolean getNCardState()
public static void startPPPoEDial(java.lang.String user, java.lang.String pwd, IHandlerLikeNotify notify)
user
-
usernamepwd
-
passwordnotify
-
Information returned objectpublic static boolean stopPPPoEDial()
public static StNetCfgInfo getNCardProp()
public static StNetCfgInfo getPPPoEProp()
public static java.lang.String getNetcardMAC()
public static int getPPPoEState()
public static void disableNcard()
public static StNetMnger.NetworkNodeTraffic getNetworkNodeCurrentTraffic(StNetMnger.NetworkNode node)
node
- @Deprecated public static StNetMnger.PPPoETraffic getPPPoECurrentTraffic()
getNetworkNodeCurrentTraffic(com.senter.support.openapi.StNetMnger.NetworkNode)
public static StNetMnger.PPPoEAccount getPPPoELatestAccount()
public static void enableNcard()
NICCannotOpen