public class PppPeer
extends java.lang.Object
Constructor and Description |
---|
PppPeer(java.lang.String peerID)
default constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getApn()
Reports APN (Access Point Name) of cellular data connection.
|
int |
getAuthType()
Reports authentication type.
|
int |
getBaudRate()
Reports baud rate used for PPP
|
int |
getConnect_delay()
Reports connect delay in milliseconds
|
ModemXchangeScript |
getConnectScript()
Reports connect script
|
java.lang.String |
getDialString()
Reports dial string
|
ModemXchangeScript |
getDisconnectScript()
Reports disconnect script
|
java.lang.String |
getId()
Reports peer ID
|
int |
getLcp_echo_failure()
Reports number 'lcp-echo-failure' parameter that is number of
unanswered LCP echo requests to presume the peer to be
dead.
|
int |
getLcp_echo_interval()
Reports LCP echo interval in seconds
|
java.lang.String |
getLogfile()
Reports name of the log file
|
java.lang.String |
getNetworkTechnology()
Reports network technology.
|
java.lang.String |
getPassword()
Reports password for authentication
|
int |
getPppUnitNumber()
Reports PPP unit number
|
java.lang.String |
getProvider()
Reports service provider
|
java.lang.String |
getUsername()
Reports user name for authentication
|
boolean |
isAddDefaultRoute()
Reports 'defaultroute' option
|
boolean |
isAllowBsdCompression()
Reports if BSD compression is allowed
|
boolean |
isAllowDeflateCompression()
Reports if 'Deflate' compression is allowed
|
boolean |
isAllowMagic()
Reports is magic number negotiation is enabled
|
boolean |
isAllowProxyArps()
Reports if 'proxyarp' option is enabled
|
boolean |
isAllowVanJacobsonConnectionIDCompression()
Reports if Van Jacobson Connection ID compression is allowed
|
boolean |
isAllowVanJacobsonTcpIpHdrCompression()
Reports if Van Jacobson TCP/IP header compression is allowed
|
boolean |
isEnabled()
Reports if PPP is enabled in configuration
|
boolean |
isEnableDebug()
Reports if connection debugging is enabled
|
boolean |
isLockSerialDevice()
Reports if PPP daemon is setup to create a lock file
|
boolean |
isPeerMustAuthenticateItself()
Reports if peer is expected to authenticate itself
|
boolean |
isPeerToSupplyLocalIP()
Reports if peer is expected to supply local IP address using IPCP negotiation.
|
boolean |
isUseModemControlLines()
Reports if modem control lines are to be used.
|
boolean |
isUsePeerDns()
Reports if peer supplied DNS should be used
|
boolean |
isUseRtsCtsFlowControl()
Reports if RTS/CTS hardware flow control is to be used
|
void |
setAddDefaultRoute(boolean addDefaultRoute)
Sets 'defaultroute' option
|
void |
setAllowBsdCompression(boolean allowBsdCompression)
Enable/disable BSD compression
|
void |
setAllowDeflateCompression(boolean allowDeflateCompression)
Enable/disable 'Deflate' compression
|
void |
setAllowMagic(boolean allowMagic)
Enable/disable magic number negotiation
|
void |
setAllowProxyArps(boolean allowProxyArps)
Enable/disable 'proxyarp' option
|
void |
setAllowVanJacobsonConnectionIDCompression(boolean allowVanJacobsonConnectionIDCompression)
Enable/disable Van Jacobson Connection ID compression
|
void |
setAllowVanJacobsonTcpIpHdrCompression(boolean allowVanJacobsonTcpIpHdrCompression)
Enable/disable Van Jacobson TCP/IP header compression
|
void |
setApn(java.lang.String apn)
Sets APN (Access Point Name) for cellular data connection.
|
void |
setAuthType(int authType)
Sets authentication type
|
void |
setBaudRate(int baudRate)
Sets baud rate used for PPP
|
void |
setConnect_delay(int connect_delay)
Sets connect delay
|
void |
setConnectScript(ModemXchangeScript connectScript)
Sets connect script
|
void |
setDialString(java.lang.String dialString)
Sets dial string
|
void |
setDisconnectScript(ModemXchangeScript disconnectScript)
Sets disconnect script
|
void |
setEnabled(boolean enabled)
Enables/disables PPP
|
void |
setEnableDebug(boolean enableDebug)
Sets 'enable connection debugging' flag
|
void |
setLcp_echo_failure(int lcp_echo_failure)
Sets 'lcp-echo-faillure' parameter
|
void |
setLcp_echo_interval(int lcp_echo_interval)
Sets LCP echo interval
|
void |
setLockSerialDevice(boolean lockSerialDevice)
Enable/disable lock file
|
void |
setLogfile(java.lang.String logfile)
Sets the name of the log file
|
void |
setNetworkTechnology(java.lang.String networkTechnology)
Sets network technology
|
void |
setPassword(java.lang.String password)
Sets password used for authentication
|
void |
setPeerMustAuthenticateItself(boolean peerMustAuthenticateItself)
Sets 'peer must authenticate itself' flag
|
void |
setPeerToSupplyLocalIP(boolean peerToSupplyLocalIP)
Sets whether peer is to supply local IP address or not
|
void |
setPppUnitNumber(int pppUnitNumber)
Sets PPP unit number
|
void |
setProvider(java.lang.String provider)
Sets service provider
|
void |
setUseModemControlLines(boolean useModemControlLines)
Sets 'use modem control lines' flag
|
void |
setUsePeerDns(boolean usePeerDns)
Sets whether to use peer supplied DNS.
|
void |
setUsername(java.lang.String username)
Sets user name used for authentication
|
void |
setUseRtsCtsFlowControl(boolean useRtsCtsFlowControl)
Enable/disable RTS/CTS flow control
|
public int getPppUnitNumber()
int
public void setPppUnitNumber(int pppUnitNumber)
pppUnitNumber
- as int
public java.lang.String getId()
String
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- public java.lang.String getProvider()
public void setProvider(java.lang.String provider)
provider
- as Stringpublic java.lang.String getNetworkTechnology()
public void setNetworkTechnology(java.lang.String networkTechnology)
networkTechnology
- as Stringpublic java.lang.String getApn()
public void setApn(java.lang.String apn)
apn
- as Stringpublic java.lang.String getDialString()
public void setDialString(java.lang.String dialString)
dialString
- such as "atdt555-1212"public int getAuthType()
public void setAuthType(int authType)
authType
- int (NONE, PAP, CHAP) as defined in PppAuthentication
public java.lang.String getUsername()
public void setUsername(java.lang.String username)
username
- as Stringpublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- as Stringpublic int getBaudRate()
public void setBaudRate(int baudRate)
baudRate
- on serial port, as intpublic java.lang.String getLogfile()
public void setLogfile(java.lang.String logfile)
logfile
- as Stringpublic ModemXchangeScript getConnectScript()
public void setConnectScript(ModemXchangeScript connectScript)
connectScript
- as ModemXchangeScript
public ModemXchangeScript getDisconnectScript()
public void setDisconnectScript(ModemXchangeScript disconnectScript)
disconnectScript
- as ModemXchangeScript
public boolean isAddDefaultRoute()
public void setAddDefaultRoute(boolean addDefaultRoute)
addDefaultRoute
- public boolean isPeerToSupplyLocalIP()
public void setPeerToSupplyLocalIP(boolean peerToSupplyLocalIP)
peerToSupplyLocalIP
- public boolean isUsePeerDns()
public void setUsePeerDns(boolean usePeerDns)
usePeerDns
- public boolean isAllowProxyArps()
public void setAllowProxyArps(boolean allowProxyArps)
allowProxyArps
- public boolean isAllowVanJacobsonTcpIpHdrCompression()
public void setAllowVanJacobsonTcpIpHdrCompression(boolean allowVanJacobsonTcpIpHdrCompression)
allowVanJacobsonTcpIpHdrCompression
- public boolean isAllowVanJacobsonConnectionIDCompression()
public void setAllowVanJacobsonConnectionIDCompression(boolean allowVanJacobsonConnectionIDCompression)
allowVanJacobsonConnectionIDCompression
- public boolean isAllowBsdCompression()
public void setAllowBsdCompression(boolean allowBsdCompression)
allowBsdCompression
- public boolean isAllowDeflateCompression()
public void setAllowDeflateCompression(boolean allowDeflateCompression)
allowDeflateCompression
- public boolean isAllowMagic()
public void setAllowMagic(boolean allowMagic)
allowMagic
- public int getLcp_echo_failure()
public void setLcp_echo_failure(int lcp_echo_failure)
lcp_echo_failure
- number of unanswered LCP echo requests before peer is assumed deadpublic int getLcp_echo_interval()
public void setLcp_echo_interval(int lcp_echo_interval)
lcp_echo_interval
- in secondspublic boolean isUseRtsCtsFlowControl()
public void setUseRtsCtsFlowControl(boolean useRtsCtsFlowControl)
useRtsCtsFlowControl
- public boolean isLockSerialDevice()
public void setLockSerialDevice(boolean lockSerialDevice)
lockSerialDevice
- public boolean isUseModemControlLines()
public void setUseModemControlLines(boolean useModemControlLines)
useModemControlLines
- public boolean isPeerMustAuthenticateItself()
public void setPeerMustAuthenticateItself(boolean peerMustAuthenticateItself)
peerMustAuthenticateItself
- public int getConnect_delay()
public void setConnect_delay(int connect_delay)
connect_delay
- in millisecondspublic boolean isEnableDebug()
public void setEnableDebug(boolean enableDebug)
enableDebug
- - enable connection debuggingCopyright © 2009 Eurotech Inc. All rights reserved.