|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.dalsemi.tininet.TININet
| Constructor Summary | |
TININet()
|
|
| Method Summary | |
static boolean |
checkAccessRights()
Checks to determine if the user has the rights to set network settings. |
static java.lang.String |
getDHCPServerIP()
Gets the IP address of DHCP server |
static void |
getDHCPServerIP(byte[] address)
Gets the DHCP Server IP. |
static int |
getDNSTimeout()
Gets the timeout value for DNS query. |
static java.lang.String |
getDomainname()
Gets the Domain name for TINI. |
static java.lang.String |
getEthernetAddress()
Gets the ethernet address as a String. |
static void |
getEthernetAddress(byte[] address)
Gets the ethernet address. |
static java.lang.String |
getGatewayIP()
Gets the gateway IP as a String. |
static void |
getGatewayIP(byte[] address)
Get the gateway IP |
static java.lang.String |
getHostname()
Gets the host name of TINI. |
static java.lang.String |
getIPAddress()
Get the IP address of TINI as a String |
static void |
getIPAddress(byte[] address)
Gets the IP address of TINI. |
static java.lang.String |
getMailhost()
Gets the mail host address. |
static java.lang.String |
getPrimaryDNS()
Gets the primary DNS address. |
static int |
getProxyPort()
Gets the proxy port. |
static java.lang.String |
getProxyServer()
Gets the proxy server. |
static java.lang.String |
getSecondaryDNS()
Gets the secondary DNS address. |
static java.lang.String |
getSubnetMask()
Gets the subnet IP as a String. |
static void |
getSubnetMask(byte[] address)
Gets the subnet mask. |
static boolean |
setDHCPServerIP(java.lang.String toThis)
Sets the DHCP server IP |
static boolean |
setDNSTimeout(int toThis)
Sets the DNS timeout. |
static boolean |
setDomainname(java.lang.String toThis)
Sets the domain name to the given string. |
static boolean |
setEthernetAddress(byte[] toThis)
Sets the ethernet address |
static boolean |
setEthernetAddress(java.lang.String toThis)
Sets the ethernet address |
static boolean |
setGatewayIP(byte[] toThis)
Sets the gateway address for TINI |
static boolean |
setGatewayIP(java.lang.String toThis)
Sets the gateway IP |
static boolean |
setHostname(java.lang.String toThis)
Sets the host name to the given string. |
static boolean |
setIPAddress(byte[] toThis)
Sets the IP address of the TINI board. |
static boolean |
setIPAddress(java.lang.String toThis)
Sets the IP address of the TINI board. |
static boolean |
setMailhost(java.lang.String toThis)
Sets the mail host. |
static boolean |
setOptions(java.lang.String dhcp,
byte[] ip,
byte[] gateway,
byte[] subnet,
java.lang.String dns1,
java.lang.String dns2,
java.lang.String domain)
Sets multiple network options |
static boolean |
setPrimaryDNS(java.lang.String toThis)
Sets the primary DNS address to the given string. |
static boolean |
setProxyPort(int toThis)
Sets the proxy port |
static boolean |
setProxyServer(java.lang.String toThis)
Sets the proxy server |
static boolean |
setSecondaryDNS(java.lang.String toThis)
Sets the secondary DNS address to the given string. |
static boolean |
setSubnetMask(byte[] toThis)
Sets the subnet mask |
static boolean |
setSubnetMask(java.lang.String toThis)
Sets the subnet mask |
static void |
update()
Method to force a reload of network settings from the file. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public TININet()
| Method Detail |
public static void update()
public static boolean checkAccessRights()
public static java.lang.String getHostname()
public static java.lang.String getDomainname()
public static java.lang.String getPrimaryDNS()
public static java.lang.String getSecondaryDNS()
public static java.lang.String getMailhost()
public static int getDNSTimeout()
public static void getDHCPServerIP(byte[] address)
- - a byte array of length four to be filled with the IP address.public static java.lang.String getDHCPServerIP()
public static void getIPAddress(byte[] address)
a - byte array of length four to be filled with the IP addresspublic static java.lang.String getIPAddress()
public static void getGatewayIP(byte[] address)
a - byte array of length four to be filled with the IP address.public static java.lang.String getGatewayIP()
public static void getSubnetMask(byte[] address)
a - byte array of length four to be filled with the IP address.public static java.lang.String getSubnetMask()
public static void getEthernetAddress(byte[] address)
a - byte array of length four to be filled with the ethernet address.public static java.lang.String getEthernetAddress()
public static java.lang.String getProxyServer()
public static int getProxyPort()
public static boolean setHostname(java.lang.String toThis)
String - - the host name.public static boolean setDomainname(java.lang.String toThis)
the - name to be setpublic static boolean setPrimaryDNS(java.lang.String toThis)
the - name to be set.public static boolean setSecondaryDNS(java.lang.String toThis)
the - name to be setpublic static boolean setMailhost(java.lang.String toThis)
String - containing the mail host address.public static boolean setDNSTimeout(int toThis)
int - timeout value in milliseconds.public static boolean setDHCPServerIP(java.lang.String toThis)
String - containing the DHCP server IPpublic static boolean setIPAddress(byte[] toThis)
byte[] - containing the IP addresspublic static boolean setIPAddress(java.lang.String toThis)
String - containing the IP addresspublic static boolean setGatewayIP(byte[] toThis)
byte[] - the IP to be setpublic static boolean setGatewayIP(java.lang.String toThis)
String - containing the IP addresspublic static boolean setSubnetMask(byte[] toThis)
byte[] - containing the subnet maskpublic static boolean setSubnetMask(java.lang.String toThis)
String - containing the subnet maskpublic static boolean setEthernetAddress(byte[] toThis)
byte[] - containing the ethernet addresspublic static boolean setEthernetAddress(java.lang.String toThis)
String - containing the ethernet addresspublic static boolean setProxyServer(java.lang.String toThis)
String - containing the proxy serverpublic static boolean setProxyPort(int toThis)
int - the port to be used for proxy
public static boolean setOptions(java.lang.String dhcp,
byte[] ip,
byte[] gateway,
byte[] subnet,
java.lang.String dns1,
java.lang.String dns2,
java.lang.String domain)
String - - dhcp serverbyte[] - - ip addressbyte[] - - gateway addressbyte[] - - subnet maskString - - primary dnsString - - secondary dnsString - - domain name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||