|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.limegroup.gnutella.AbstractPushEndpoint
com.limegroup.gnutella.PushEndpointImpl
public class PushEndpointImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.limewire.io.IpPort |
|---|
IpPort.IpComparator, IpPort.IpPortComparator |
| Nested classes/interfaces inherited from interface org.limewire.io.Address |
|---|
Address.EventType |
| Field Summary |
|---|
| Fields inherited from interface com.limegroup.gnutella.PushEndpoint |
|---|
FEATURES_MASK, FWT_VERSION_MASK, HEADER_SIZE, MAX_PROXIES, PLAIN, PPTLS_BINARY, PPTLS_HTTP, PROXY_SIZE, SIZE_MASK |
| Fields inherited from interface org.limewire.io.IpPort |
|---|
COMPARATOR, EMPTY_LIST, EMPTY_SET, IP_COMPARATOR |
| Constructor Summary | |
|---|---|
PushEndpointImpl(byte[] guid,
Set<? extends IpPort> proxies,
byte features,
int fwtVersion,
IpPort addr,
PushEndpointCache pushEndpointCache,
NetworkInstanceUtils networkInstanceUtils)
|
|
| Method Summary | |
|---|---|
PushEndpoint |
createClone()
Can return null if no valid push endpoint can be cloned. |
String |
getAddress()
Implements the IpPort interface, returning a bogus ip if we don't know it. |
String |
getAddressDescription()
|
byte[] |
getClientGUID()
Returns the GUID of the client that can be reached through the pushproxies. |
byte |
getFeatures()
|
int |
getFWTVersion()
|
InetAddress |
getInetAddress()
Assessor for the InetAddress for this host. |
InetSocketAddress |
getInetSocketAddress()
Accessor for the InetSocketAddress that can describe the IP & Port. |
int |
getPort()
Implements the IpPort interface, returning a bogus port if we don't know it |
Set<? extends IpPort> |
getProxies()
|
IpPort |
getValidExternalAddress()
Returns an IpPort representing the valid external address of
this push endpoint if it is known, otherwise null. |
boolean |
isLocal()
|
void |
updateProxies(boolean good)
Updates either the PushEndpoint or the GUID_PROXY_MAP to ensure that GUID_PROXY_MAP has a reference to all live PE GUIDs and all live PE's reference the same GUID object as in GUID_PROXY_MAP. |
| Methods inherited from class com.limegroup.gnutella.AbstractPushEndpoint |
|---|
equals, getSizeBytes, hashCode, httpStringValue, toBytes, toBytes, toBytes, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PushEndpointImpl(byte[] guid,
Set<? extends IpPort> proxies,
byte features,
int fwtVersion,
IpPort addr,
PushEndpointCache pushEndpointCache,
NetworkInstanceUtils networkInstanceUtils)
| Method Detail |
|---|
public IpPort getValidExternalAddress()
PushEndpointIpPort representing the valid external address of
this push endpoint if it is known, otherwise null.
public byte[] getClientGUID()
PushEndpoint
public Set<? extends IpPort> getProxies()
public int getFWTVersion()
public byte getFeatures()
public String getAddress()
RemoteFileDesc.BOGUS_IPpublic InetAddress getInetAddress()
IpPort
public int getPort()
public InetSocketAddress getInetSocketAddress()
IpPort
public String getAddressDescription()
public boolean isLocal()
public void updateProxies(boolean good)
PushEndpoint
public PushEndpoint createClone()
PushEndpoint
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||