SourceForge Jpcap

net.sourceforge.jpcap.capture
Class CaptureDevice.Address

java.lang.Object
  extended by net.sourceforge.jpcap.capture.CaptureDevice.Address
Enclosing class:
CaptureDevice

public static class CaptureDevice.Address
extends Object

The Address class encapsulates addressing information for a CaptureDevice.

Since:
2.0.0
Version:
$Revision: 1.1 $
Author:
Esmond Pitt

Method Summary
 boolean equals(Object other)
           
 InetAddress getAddress()
          Get the IP address.
 InetAddress getBroadcast()
          Get the broadcast address.
 InetAddress getDestination()
          Get the destination address: zero-length if the device isn't a point-to-point device.
 InetAddress getNetmask()
          Get the netmask.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getAddress

public InetAddress getAddress()
Get the IP address.

Returns:
the IP address.

getNetmask

public InetAddress getNetmask()
Get the netmask.

Returns:
the netmask.

getBroadcast

public InetAddress getBroadcast()
Get the broadcast address.

Returns:
the broadcast address.

getDestination

public InetAddress getDestination()
Get the destination address: zero-length if the device isn't a point-to-point device.

Returns:
the destination address.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

Copyright © Patrick Charles & Jonas Lehmann, 2001; Esmond Pitt, 2008.