com.eurotech.framework.net.admin.modem
Class Ppp

java.lang.Object
  extended by com.eurotech.framework.net.admin.modem.Ppp
All Implemented Interfaces:
IModemLinkService

public class Ppp
extends Object
implements IModemLinkService


Field Summary
 
Fields inherited from interface com.eurotech.framework.net.admin.modem.IModemLinkService
SERVICE_NAME
 
Constructor Summary
Ppp(String iface, String port)
           
 
Method Summary
 void connect()
          Connect request with default timeout
 void connect(int tout)
          Connect request
 void disconnect()
          Disconnect request
 String getGatewayIpAddress()
          Reports gateway IP address (IP address of the peer)
 String getIfaceName()
          Reports name of network interface
 String getIPaddress()
          Reports IP address of cellular interface
 PppState getPppState()
           
 PppState getPppState(int tout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ppp

public Ppp(String iface,
           String port)
Method Detail

connect

public void connect()
             throws EsfException
Description copied from interface: IModemLinkService
Connect request with default timeout

Specified by:
connect in interface IModemLinkService
Throws:
EsfException

connect

public void connect(int tout)
             throws EsfException
Description copied from interface: IModemLinkService
Connect request

Specified by:
connect in interface IModemLinkService
Parameters:
tout - - timeout in seconds as int
Throws:
EsfException

disconnect

public void disconnect()
                throws EsfException
Description copied from interface: IModemLinkService
Disconnect request

Specified by:
disconnect in interface IModemLinkService
Throws:
EsfException

getIPaddress

public String getIPaddress()
                    throws EsfException
Description copied from interface: IModemLinkService
Reports IP address of cellular interface

Specified by:
getIPaddress in interface IModemLinkService
Returns:
IP address as String
Throws:
EsfException

getGatewayIpAddress

public String getGatewayIpAddress()
Description copied from interface: IModemLinkService
Reports gateway IP address (IP address of the peer)

Specified by:
getGatewayIpAddress in interface IModemLinkService
Returns:
gateway IP address as String

getIfaceName

public String getIfaceName()
Description copied from interface: IModemLinkService
Reports name of network interface

Specified by:
getIfaceName in interface IModemLinkService
Returns:
network interface name as String

getPppState

public PppState getPppState()
                     throws EsfException
Specified by:
getPppState in interface IModemLinkService
Throws:
EsfException

getPppState

public PppState getPppState(int tout)
                     throws EsfException
Specified by:
getPppState in interface IModemLinkService
Throws:
EsfException


Copyright © 2013. All Rights Reserved.