|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Defines PPP service interface provided to user application.
| Field Summary | |
static java.lang.String |
SERVICE_NAME
Reports the class name representing this interface. |
| Method Summary | |
void |
connect()
Establishes PPP connection with a service provider |
void |
disconnect()
Terminates PPP connection |
java.lang.String |
getIPaddress()
Reports IP address assigned to the ppp0 interface |
PppPeer |
getPeer()
Answers current PPP peer object |
java.lang.String |
getPeerIPaddress()
Reports IP address of the peer |
boolean |
isConnectionInProgress()
Reports if PPP connection is in progress. |
boolean |
isUp()
Reports if PPP is up |
void |
setPeer(PppPeer peer)
Sets PPP peer object |
void |
setSerialPort(java.lang.String port)
Sets serial port that is used to establish PPP connection |
| Field Detail |
public static final java.lang.String SERVICE_NAME
| Method Detail |
public void connect()
throws java.lang.Exception
java.lang.Exception
public void disconnect()
throws java.lang.Exception
java.lang.Exceptionpublic void setSerialPort(java.lang.String port)
port - - serial port (e.g. /dev/ttyUSB0)public PppPeer getPeer()
public void setPeer(PppPeer peer)
throws java.lang.Exception
peer - - PPP peer object
java.lang.Exception
public boolean isUp()
throws java.lang.Exception
java.lang.Exception
public boolean isConnectionInProgress()
throws java.lang.Exception
java.lang.Exception
public java.lang.String getIPaddress()
throws java.lang.Exception
java.lang.Exception
public java.lang.String getPeerIPaddress()
throws java.lang.Exception
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||