eWON JTK

com.ewon.ewonitf
Class InterfaceInfo

java.lang.Object
  extended by com.ewon.ewonitf.InterfaceInfo

public class InterfaceInfo
extends Object

This class represents the content of an SMS message (received). Objects of this class are typically returned by functions like: ModemManager.readSms()


Constructor Summary
InterfaceInfo(long IpAddress, long IpMask, boolean UseDHCP, long DHCPServerIp, long IpGateway, long DnsPriAddress, long DnsSecAddress, boolean LinkGood, long LinkSpeed)
          Creates a new instance of InterfaceInfo.
 
Method Summary
 long getDnsPri()
           
 long getDnsSec()
           
 long getIpAddress()
           
 long getIpGatewayOffer()
           
 long getIpMask()
           
 boolean getLinkGood()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterfaceInfo

public InterfaceInfo(long IpAddress,
                     long IpMask,
                     boolean UseDHCP,
                     long DHCPServerIp,
                     long IpGateway,
                     long DnsPriAddress,
                     long DnsSecAddress,
                     boolean LinkGood,
                     long LinkSpeed)
Creates a new instance of InterfaceInfo. This function is normaly not used by the user but internally to return status of the interface with function like NetManager.readInterfaceInfo(int)

Method Detail

getIpAddress

public long getIpAddress()
Returns:
The interface current IP address (0 if interface is down)

getIpMask

public long getIpMask()
Returns:
The interface current IP Mask

getIpGatewayOffer

public long getIpGatewayOffer()
Returns:
Gateway IP address proposal for this interface (DHCP)

getLinkGood

public boolean getLinkGood()
Returns:
The interface current Link status

getDnsPri

public long getDnsPri()
Returns:
The interface current DNS primary address

getDnsSec

public long getDnsSec()
Returns:
The interface current DNS secondary address

eWON JTK

www.eWON.biz: Your Eyes Watching Over Net