org.firepick
| Constructor and Description |
|---|
IPv4Scanner(InetAddress iaddr,
int count,
int msTimeout) |
| Modifier and Type | Method and Description |
|---|---|
static InetAddress |
asInetAddress(long addr) |
static long |
asLongAddress(InetAddress addr) |
List<InetAddress> |
getAddresses() |
static List<InetAddress> |
localhostNetworkAddresses()
Return list of InetAddress for localhost that are not loopback addresses
(e.g., 127.0.0.1)
|
static List<InetAddress> |
localNetworkAddresses()
Deprecated.
|
void |
run() |
static Collection<InetAddress> |
scanRange(InetAddress addr,
int count,
int msTimeout)
Scan a range of InetAddresses starting with the given address
|
static InetAddress |
subnetAddress0(InetAddress addr,
int subnetBits)
Return first address on subnet containing given address
|
public IPv4Scanner(InetAddress iaddr, int count, int msTimeout)
@Deprecated public static List<InetAddress> localNetworkAddresses() throws UnknownHostException, SocketException
UnknownHostExceptionSocketExceptionlocalhostNetworkAddressespublic static List<InetAddress> localhostNetworkAddresses() throws UnknownHostException, SocketException
UnknownHostExceptionSocketExceptionpublic static Collection<InetAddress> scanRange(InetAddress addr, int count, int msTimeout)
start - starting address of search; null implies subnetAddress0(null,24)count - number of addresses in rangemsTimeout - maximum time to wait for each hostpublic static InetAddress subnetAddress0(InetAddress addr, int subnetBits)
addr - any machine in subnetsubnetBits - the number of bits in subnet mask. Many small networks use 24.public static long asLongAddress(InetAddress addr)
public List<InetAddress> getAddresses()
public static InetAddress asInetAddress(long addr) throws UnknownHostException
UnknownHostExceptionCopyright © 2014. All rights reserved.