com.dalsemi.nethack
Class EthernetAccess

java.lang.Object
  |
  +--com.dalsemi.nethack.EthernetAccess

public class EthernetAccess
extends java.lang.Object

A class to provide a java interface to some networking utilities.


Method Summary
static void getDefaultRouterIPAddress(byte[] address)
          Deprecated. Replaced by TININet.getGatewayIP(byte[]).
static void getEthernetAddress(byte[] address)
          Deprecated. Replaced by TININet.getEthernetAddress(byte[]).
static void getIPAddress(byte[] address)
          Deprecated. Replaced by TININet.getIPAddress(byte[]).
static void getSubnetMask(byte[] mask)
          Deprecated. Replaced by TININet.getSubnetMask(byte[]).
static void setDefaultRouterIPAddress(byte[] address)
          Deprecated. Replaced by TININet.setGatewayIP(byte[]).
static void setEthernetAddress(byte[] address)
          Deprecated. Replaced by TININet.setEthernetAddress(byte[]).
static void setIPAddress(byte[] address)
          Deprecated. Replaced by TININet.setIPAddress(byte[]).
static void setSubnetMask(byte[] mask)
          Deprecated. Replaced by TININet.setSubnetMask(byte[]).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setEthernetAddress

public static void setEthernetAddress(byte[] address)
Deprecated. Replaced by TININet.setEthernetAddress(byte[]).
Set the ethernet(MAC) address for the TINI board.
Parameters:
address - - the address for the TINI board. Should be in the form of a byte[] containing the address.

getEthernetAddress

public static void getEthernetAddress(byte[] address)
Deprecated. Replaced by TININet.getEthernetAddress(byte[]).
Gets a byte[] representation of the ethernet address that the TINI board is using.
Parameters:
address - - a byte[] of size 6. The call will fill in the contents of the byte[] with the ethernet address.

getIPAddress

public static void getIPAddress(byte[] address)
Deprecated. Replaced by TININet.getIPAddress(byte[]).
Gets the IP Address of the TINI board.
Parameters:
address - - a byte[] of size four that will be filled in with the IP address.

setIPAddress

public static void setIPAddress(byte[] address)
Deprecated. Replaced by TININet.setIPAddress(byte[]).
Sets the IP Address of the TINI board to the given byte[].
Parameters:
address - - a four byte array containing a valid IP Address.

getDefaultRouterIPAddress

public static void getDefaultRouterIPAddress(byte[] address)
Deprecated. Replaced by TININet.getGatewayIP(byte[]).
Gets the default router IP address.
Parameters:
address - - a four byte array that will be filled in with the current setting for the router.

setDefaultRouterIPAddress

public static void setDefaultRouterIPAddress(byte[] address)
Deprecated. Replaced by TININet.setGatewayIP(byte[]).
Sets the default router IP Address.
Parameters:
address - - a four byte array that contains a valid router IP address.

getSubnetMask

public static void getSubnetMask(byte[] mask)
Deprecated. Replaced by TININet.getSubnetMask(byte[]).
Get the value of the subnet mask for the TINI board.
Parameters:
mask - - a four byte array that will be filled with the current subnet mask.

setSubnetMask

public static void setSubnetMask(byte[] mask)
Deprecated. Replaced by TININet.setSubnetMask(byte[]).
Sets the subnet mask for the TINI board.
Parameters:
address - - a four byte array containing a valid subnet mask.