public final class StNetMnger2
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
StNetMnger2.IHandlerLikeNotify
Event notification interface which is similar as Handler
|
static class |
StNetMnger2.NetworkNode
Network Node
|
static class |
StNetMnger2.NetworkNodeTraffic
network node traffic
|
static class |
StNetMnger2.PPPoEAccount
|
static class |
StNetMnger2.PPPoETraffic
Deprecated.
Use
StNetMnger2.NetworkNodeTraffic instead. |
static class |
StNetMnger2.StConst |
static class |
StNetMnger2.StNetCfgInfo
|
Modifier and Type | Method and Description |
---|---|
static void |
disableNcard()
Disable the network card
|
static void |
enableNcard()
Enable the network card
|
static StNetMnger2.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 StNetMnger2.NetworkNodeTraffic |
getNetworkNodeCurrentTraffic(StNetMnger2.NetworkNode node)
|
static StNetMnger2.PPPoETraffic |
getPPPoECurrentTraffic()
Deprecated.
Use
getNetworkNodeCurrentTraffic(NetworkNode) instead. |
static StNetMnger2.PPPoEAccount |
getPPPoELatestAccount()
|
static StNetMnger2.StNetCfgInfo |
getPPPoEProp()
Get the network configuration information after PPPoE dial-up successful.
|
static int |
getPPPoEState()
get PPPoE State
|
static void |
setStaticIP(StNetMnger2.StNetCfgInfo nci,
StNetMnger2.IHandlerLikeNotify notify)
Set static IP.Asynchronous function, setting results can be obtained through the notify interfaces.
|
static boolean |
startDHCP(StNetMnger2.IHandlerLikeNotify notify)
Start DHCP, obtain legal network configuration
|
static void |
startPPPoEDial(java.lang.String user,
java.lang.String pwd,
StNetMnger2.IHandlerLikeNotify notify)
Start PPPoE dialing.
|
static boolean |
stopPPPoEDial()
Disconnect PPPoE
|
public static void setStaticIP(StNetMnger2.StNetCfgInfo nci, StNetMnger2.IHandlerLikeNotify notify)
nci
- properties to be setnotify
- set notification interfacepublic 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
-
usernamepwd
-
passwordnotify
-
Information returned objectpublic 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