public class NetManager extends Object
Modifier and Type | Field and Description |
---|---|
static int |
LAN_INTERFACE_NDX
Paramter used in
readInterfaceInfo(int) to select LAN interface. |
static int |
T2M_CNX_AUTO
Automatic detection of the connection to Talk2M,
connection type defined in
t2mCfgCommand(String , String , String , int ) to select how the
wizard will try to detect or how it will force the connection to Talk2M. |
static int |
T2M_CNX_FLAG_DONT_TOUCH_VPN_KEY_CONFIG
This flag can be added to one of
T2M_CNX_AUTO,T2M_CNX_UDP,T2M_CNX_TCP,T2M_CNX_TCP_PROXY in t2mCfgCommand(String , String , String , int )
It will prevent the Talk2M VPN keys to be retrieved from the Talk2M server and will leave the existing keys unchanged. |
static int |
T2M_CNX_FLAG_DONT_TOUCH_VPN_SERVER_CONFIG
This flag can be added to one of
T2M_CNX_AUTO,T2M_CNX_UDP,T2M_CNX_TCP,T2M_CNX_TCP_PROXY in t2mCfgCommand(String , String , String , int )
It will prevent the main access server address to be modified during the wizard. |
static int |
T2M_CNX_TCP
Force TCP connection to Talk2M,
connection type define in
t2mCfgCommand(String , String , String , int ) to select how the
wizard will try to detect or how you will force the connection to Talk2M. |
static int |
T2M_CNX_TCP_PROXY
Force Proxied TCP connection to Talk2M,
connection type define in
t2mCfgCommand(String , String , String , int ) to select how the
wizard will try to detect or how you will force the connection to Talk2M. |
static int |
T2M_CNX_UDP
Force UDP connection to Talk2M,
connection type defined in
t2mCfgCommand(String , String , String , int ) to select how the
wizard will try to detect or how it will force the connection to Talk2M. |
static int |
WAN_INTERFACE_NDX
Paramter used in
readInterfaceInfo(int) to select WAN interface. |
Constructor and Description |
---|
NetManager()
Creates a new instance of NetManager
|
Modifier and Type | Method and Description |
---|---|
static void |
closePppConnection()
Close any currently opened PPP connection.
If connection is not open then the function does nothing. |
static boolean |
getEthernetSwitchPortLink(int PortNum)
Return The status of the given switch port.
|
static String |
getPppIp()
Read the current PPP IP address.
|
static boolean |
getT2mCfgInProgress()
Return true if the Talk2M configuration is currently in progress.
|
static String |
getVpnIp()
Read the current eWON VPN IP address.
|
static String |
getWanIp()
Read the current WAN IP address.
|
static InterfaceInfo |
readInterfaceInfo(int IfNum)
Return an object containing information about the interface status
|
static void |
setEthernetSwitchPortState(int PortNum,
boolean State)
Enable or disable the given switch port.
|
static void |
setTransparentForwardingDest(String Address)
Configure the destination address for transparent forwarding.
|
static void |
t2mCfgCommand(String ActivationKey)
Triggers a Talk2M configuration by providing ActivationKey.
|
static void |
t2mCfgCommand(String ActivationKey,
int CnxType)
Triggers a Talk2M configuration by providing ActivationKey.
|
static void |
t2mCfgCommand(String eWonName,
String UserName,
String UserPassword)
Triggers a Talk2M configuration by providing ActivationKey
|
static void |
t2mCfgCommand(String eWonName,
String UserName,
String UserPassword,
int CnxType)
Triggers a Talk2M configuration by providing ActivationKey
|
public static final int LAN_INTERFACE_NDX
readInterfaceInfo(int)
to select LAN interface.public static final int WAN_INTERFACE_NDX
readInterfaceInfo(int)
to select WAN interface.public static final int T2M_CNX_AUTO
t2mCfgCommand(String , String , String , int )
to select how the
wizard will try to detect or how it will force the connection to Talk2M.public static final int T2M_CNX_UDP
t2mCfgCommand(String , String , String , int )
to select how the
wizard will try to detect or how it will force the connection to Talk2M.public static final int T2M_CNX_TCP
t2mCfgCommand(String , String , String , int )
to select how the
wizard will try to detect or how you will force the connection to Talk2M.public static final int T2M_CNX_TCP_PROXY
t2mCfgCommand(String , String , String , int )
to select how the
wizard will try to detect or how you will force the connection to Talk2M.public static final int T2M_CNX_FLAG_DONT_TOUCH_VPN_SERVER_CONFIG
T2M_CNX_AUTO,T2M_CNX_UDP,T2M_CNX_TCP,T2M_CNX_TCP_PROXY
in t2mCfgCommand(String , String , String , int )
It will prevent the main access server address to be modified during the wizard.public static final int T2M_CNX_FLAG_DONT_TOUCH_VPN_KEY_CONFIG
T2M_CNX_AUTO,T2M_CNX_UDP,T2M_CNX_TCP,T2M_CNX_TCP_PROXY
in t2mCfgCommand(String , String , String , int )
It will prevent the Talk2M VPN keys to be retrieved from the Talk2M server and will leave the existing keys unchanged.public static String getVpnIp()
"0.0.0.0"
.public static String getWanIp()
"0.0.0.0"
.public static String getPppIp()
"0.0.0.0"
.public static void closePppConnection()
public static void setTransparentForwardingDest(String Address) throws EWException
EWExeption
- in case the operation fails.EWException
public static void t2mCfgCommand(String ActivationKey) throws EWException
ActivationKey
- is provided by the eCatcher client or Talk2M Access Server WebservicesEWExeption
- in case the operation fails. The operation will fail if it is already in progress.EWException
public static void t2mCfgCommand(String eWonName, String UserName, String UserPassword) throws EWException
eWonName
- The eWON name (as defined in Talk2M, not the eWON name fromeWON configuration)UserName
- The Talk2M user name with required access for eWON configuration.UserPassword
- The given user's password.EWExeption
- in case the operation fails. The operation will fail if it is already in progress.EWException
public static void t2mCfgCommand(String ActivationKey, int CnxType) throws EWException
ActivationKey
- is provided by the eCatcher client or Talk2M Access Server WebservicesCnxType
- Defines the connection type to connect to Talk2M. One of T2M_CNX_AUTO, T2M_CNX_UDP, T2M_CNX_TCP, T2M_CNX_TCP_PROXY
EWExeption
- in case the operation fails. The operation will fail if it is already in progress.EWException
public static void t2mCfgCommand(String eWonName, String UserName, String UserPassword, int CnxType) throws EWException
eWonName
- The eWON name (as defined in Talk2M, not the eWON name fromeWON configuration)UserName
- The Talk2M user name with required access for eWON configuration.UserPassword
- The given user's password.CnxType
- Defines the connection type to connect to Talk2M. One of T2M_CNX_AUTO, T2M_CNX_UDP, T2M_CNX_TCP, T2M_CNX_TCP_PROXY
EWExeption
- in case the operation fails. The operation will fail if it is already in progress.EWException
public static boolean getT2mCfgInProgress()
public static InterfaceInfo readInterfaceInfo(int IfNum) throws EWException
IfNum
- one of LAN_INTERFACE_NDX or WAN_INTERFACE_NDX
EWExeption
- in case the operation fails.EWException
public static boolean getEthernetSwitchPortLink(int PortNum) throws EWException
PortNum
- Is the port number between 0 and 4EWExeption
- in case the operation fails.EWException
public static void setEthernetSwitchPortState(int PortNum, boolean State) throws EWException
PortNum
- Is the port number between 0 and 4 (0 is the eWON connected internally)State
- true if the port must be enabled, false otherwise.EWExeption
- in case the operation fails.EWException