com.ewon.ewonitf
Class InterfaceInfo
java.lang.Object
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. |
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)
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
www.eWON.biz: Your Eyes Watching Over Net