|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPppService
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 |
PppConnectionInfo |
getPppConnectionInfo()
Reports PPP connection information |
boolean |
isConnectionInProgress()
Reports if PPP connection is in progress. |
boolean |
isConnectionInProgress(int tout)
Reports if PPP connection is in progress. |
boolean |
isUp()
Reports if PPP is up |
boolean |
isUp(int tout)
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 |
|---|
static final java.lang.String SERVICE_NAME
| Method Detail |
|---|
void connect()
throws java.lang.Exception
java.lang.Exception
void disconnect()
throws java.lang.Exception
java.lang.ExceptionPppConnectionInfo getPppConnectionInfo()
PppConnectionInfovoid setSerialPort(java.lang.String port)
port - - serial port (e.g. /dev/ttyUSB0)PppPeer getPeer()
void setPeer(PppPeer peer)
throws java.lang.Exception
peer - - PPP peer object
java.lang.Exception
boolean isUp()
throws java.lang.Exception
java.lang.Exception
boolean isUp(int tout)
throws java.lang.Exception
tout - - timeout in seconds
java.lang.Exception
boolean isConnectionInProgress()
throws java.lang.Exception
java.lang.Exception
boolean isConnectionInProgress(int tout)
throws java.lang.Exception
tout - - timeout in seconds
java.lang.Exception
java.lang.String getIPaddress()
throws java.lang.Exception
java.lang.Exception
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 | |||||||||