|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NetworkInstanceUtils
A collection of network-related utility methods which are specific to a running instance.
| Method Summary | |
|---|---|
boolean |
isMe(byte[] address,
int port)
If host is not a valid host address, returns false. |
boolean |
isMe(IpPort me)
Returns true if the given IpPort is the local host |
boolean |
isMe(String host,
int port)
If host is not a valid host address, returns false. |
boolean |
isPrivate()
Returns whether or not this node has a private address. |
boolean |
isPrivateAddress(byte[] address)
Checks if the given address is a private address. |
boolean |
isPrivateAddress(InetAddress address)
Utility method for determining whether or not the given address is private taking an InetAddress object as argument like the isLocalAddress(InetAddress) method. |
boolean |
isPrivateAddress(SocketAddress address)
Utility method for determining whether or not the given address is private taking an InetAddress object as argument like the isLocalAddress(InetAddress) method. |
boolean |
isPrivateAddress(String address)
Utility method for determining whether or not the given address is private. |
boolean |
isValidExternalIpPort(IpPort addr)
|
boolean |
isVeryCloseIP(byte[] addr)
Returns whether or not the given IP address shares the same first three octets as the address for this node -- the most common indication that they may be on the same network. |
boolean |
isVeryCloseIP(byte[] addr0,
byte[] addr1)
Returns whether or not the two IP addresses share the same first two octets in their address -- the most common indication that they may be on the same network. |
boolean |
isVeryCloseIP(InetAddress addr)
Returns whether or not the given IP address shares the same first three octets as the address for this node -- the most common indication that they may be on the same network. |
| Method Detail |
|---|
boolean isMe(String host,
int port)
boolean isMe(byte[] address,
int port)
boolean isMe(IpPort me)
boolean isVeryCloseIP(byte[] addr0,
byte[] addr1)
addr0 - the first address to compareaddr1 - the second address to compareboolean isVeryCloseIP(InetAddress addr)
addr - the address to compareboolean isVeryCloseIP(byte[] addr)
addr - the address to compareboolean isPrivate()
boolean isPrivateAddress(InetAddress address)
boolean isPrivateAddress(byte[] address)
address - the address to checkboolean isPrivateAddress(String address)
boolean isPrivateAddress(SocketAddress address)
boolean isValidExternalIpPort(IpPort addr)
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||