|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.limegroup.gnutella.connection.ConnectionCapabilitiesImpl
public class ConnectionCapabilitiesImpl
A ConnectionCapabilities that delegates to HandshakeResponse
objects to keep track of what headers were read or written, and
CapabilitiesVM and MessagesSupportedVendorMessage objects to
keep track of what vendor messages & capabilities are supported.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.limegroup.gnutella.connection.ConnectionCapabilities |
|---|
ConnectionCapabilities.Capability |
| Constructor Summary | |
|---|---|
ConnectionCapabilitiesImpl()
|
|
| Method Summary | |
|---|---|
boolean |
canAcceptIncomingTCP()
|
boolean |
canDoFWT()
|
int |
getCapability(ConnectionCapabilities.Capability capability)
|
HandshakeResponse |
getHeadersRead()
Accessor for the HandshakeResponse instance containing all of the Gnutella connection headers passed by this node. |
HandshakeResponse |
getHeadersWritten()
|
int |
getNumIntraUltrapeerConnections()
Returns the number of intra-Ultrapeer connections this node maintains. |
int |
getRemoteHostFeatureQuerySelector()
|
boolean |
getRemoteHostSupportsFeatureQueries()
Return whether or not the remote host supports feature queries. |
int |
getRemoteHostUpdateVersion()
Gets the remote host's 'update' version. |
int |
getSupportedOOBProxyControlVersion()
Returns the peer's supported version of the out-of-band proxying control message or -1. |
String |
getUserAgent()
Returns the vendor string reported by this connection, i.e., the USER_AGENT property, or null if it wasn't set. |
String |
getVersion()
Accessor for the LimeWire version reported in the connection headers for this node. |
boolean |
isCapabilitiesVmSet()
|
boolean |
isClientSupernodeConnection()
Returns true iff the connection is an Ultrapeer and I am a leaf, i.e., if I wrote "X-Ultrapeer: false", this connection wrote "X-Ultrapeer: true" (not necessarily in that order). |
boolean |
isGoodLeaf()
|
boolean |
isGoodUltrapeer()
|
boolean |
isGUESSUltrapeer()
Returns whether or not this connection is to a ultrapeer supporting GUESS. |
boolean |
isHighDegreeConnection()
|
boolean |
isLeafConnection()
Returns true iff this connection wrote "Ultrapeer: false". |
boolean |
isLimeWire()
Returns whether or not the remote host is a LimeWire (or derivative) |
boolean |
isOldLimeWire()
Returns whether or not this is considered an 'old' LimeWire. |
boolean |
isQueryRoutingEnabled()
True if the remote host supports query routing (QRP). |
boolean |
isSupernodeClientConnection()
Returns true iff I am a supernode shielding the given connection, i.e., if I wrote "X-Ultrapeer: true" and this connection wrote "X-Ultrapeer: false, and both support query routing. |
boolean |
isSupernodeConnection()
Returns true iff this connection wrote "Supernode: true". |
boolean |
isSupernodeSupernodeConnection()
Returns true iff the connection is an Ultrapeer and I am a Ultrapeer, ie: if I wrote "X-Ultrapeer: true", this connection wrote "X-Ultrapeer: true" (not necessarily in that order). |
boolean |
isUltrapeerQueryRoutingConnection()
Returns whether or not this connection is to an Ultrapeer that supports query routing between Ultrapeers at 1 hop. |
boolean |
receivedHeaders()
Accessor for whether or not this connection has received any headers. |
int |
remostHostIsActiveDHTNode()
Returns the DHT version if the remote host is an active DHT node or -1 if it is not. |
int |
remostHostIsPassiveDHTNode()
Returns the DHT version if the remote host is a passive DHT node or -1 if it is not. |
int |
remoteHostIsPassiveLeafNode()
Returns the DHT version of the remote host is a passive leaf DHT node or -1 if it is not. |
int |
remoteHostSupportsHeaderUpdate()
|
int |
remoteHostSupportsHopsFlow()
|
int |
remoteHostSupportsInspections()
|
int |
remoteHostSupportsLeafGuidance()
|
int |
remoteHostSupportsPushProxy()
|
int |
remoteHostSupportsTCPConnectBack()
|
int |
remoteHostSupportsTCPRedirect()
|
int |
remoteHostSupportsUDPConnectBack()
|
int |
remoteHostSupportsUDPCrawling()
|
int |
remoteHostSupportsUDPRedirect()
|
boolean |
remoteHostSupportsWhatIsNew()
|
void |
setCapabilitiesVendorMessage(CapabilitiesVM vm)
|
void |
setHeadersRead(HandshakeResponse createResponse)
|
void |
setHeadersWritten(HandshakeResponse writtenHeaders)
|
void |
setMessagesSupportedVendorMessage(MessagesSupportedVendorMessage vm)
|
boolean |
supportsGGEP()
Deprecated. |
boolean |
supportsPongCaching()
|
boolean |
supportsProbeQueries()
Returns whether or not this connections supports "probe" queries, or queries sent at TTL=1 that should not block the send path of subsequent, higher TTL queries. |
int |
supportsVendorMessage(byte[] vendorID,
int selector)
|
boolean |
supportsVMRouting()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionCapabilitiesImpl()
| Method Detail |
|---|
public String getUserAgent()
ConnectionCapabilities
getUserAgent in interface ConnectionCapabilitiespublic boolean isLimeWire()
ConnectionCapabilities
isLimeWire in interface ConnectionCapabilitiespublic boolean isOldLimeWire()
ConnectionCapabilities
isOldLimeWire in interface ConnectionCapabilitiespublic boolean isGoodUltrapeer()
isGoodUltrapeer in interface ConnectionCapabilitiespublic boolean isGoodLeaf()
isGoodLeaf in interface ConnectionCapabilitiespublic boolean supportsPongCaching()
supportsPongCaching in interface ConnectionCapabilitiespublic int getNumIntraUltrapeerConnections()
getNumIntraUltrapeerConnections in interface ConnectionCapabilitiespublic boolean isHighDegreeConnection()
isHighDegreeConnection in interface ConnectionCapabilitiespublic boolean isUltrapeerQueryRoutingConnection()
ConnectionCapabilities
isUltrapeerQueryRoutingConnection in interface ConnectionCapabilitiespublic boolean supportsProbeQueries()
ConnectionCapabilities
supportsProbeQueries in interface ConnectionCapabilitiespublic boolean receivedHeaders()
ConnectionCapabilities
receivedHeaders in interface ConnectionCapabilitiespublic HandshakeResponse getHeadersRead()
ConnectionCapabilities
getHeadersRead in interface ConnectionCapabilitiespublic String getVersion()
ConnectionCapabilities
getVersion in interface ConnectionCapabilitiespublic boolean isLeafConnection()
ConnectionCapabilities
isLeafConnection in interface ConnectionCapabilitiespublic boolean isSupernodeConnection()
ConnectionCapabilities
isSupernodeConnection in interface ConnectionCapabilitiespublic boolean isClientSupernodeConnection()
ConnectionCapabilities
isClientSupernodeConnection in interface ConnectionCapabilitiespublic boolean isSupernodeSupernodeConnection()
ConnectionCapabilities
isSupernodeSupernodeConnection in interface ConnectionCapabilitiespublic boolean isGUESSUltrapeer()
ConnectionCapabilities
isGUESSUltrapeer in interface ConnectionCapabilitiespublic boolean isSupernodeClientConnection()
ConnectionCapabilities
isSupernodeClientConnection in interface ConnectionCapabilities@Deprecated public boolean supportsGGEP()
public boolean isQueryRoutingEnabled()
isQueryRoutingEnabled in interface ConnectionCapabilities
public int supportsVendorMessage(byte[] vendorID,
int selector)
supportsVendorMessage in interface ConnectionCapabilitiespublic boolean supportsVMRouting()
supportsVMRouting in interface ConnectionCapabilitiespublic int remoteHostSupportsUDPConnectBack()
remoteHostSupportsUDPConnectBack in interface ConnectionCapabilitiespublic int remoteHostSupportsTCPConnectBack()
remoteHostSupportsTCPConnectBack in interface ConnectionCapabilitiespublic int remoteHostSupportsUDPRedirect()
remoteHostSupportsUDPRedirect in interface ConnectionCapabilitiespublic int remoteHostSupportsTCPRedirect()
remoteHostSupportsTCPRedirect in interface ConnectionCapabilitiespublic int remoteHostSupportsUDPCrawling()
remoteHostSupportsUDPCrawling in interface ConnectionCapabilitiespublic int remoteHostSupportsHopsFlow()
remoteHostSupportsHopsFlow in interface ConnectionCapabilitiespublic int remoteHostSupportsPushProxy()
remoteHostSupportsPushProxy in interface ConnectionCapabilitiespublic int remoteHostSupportsLeafGuidance()
remoteHostSupportsLeafGuidance in interface ConnectionCapabilitiespublic int remoteHostSupportsHeaderUpdate()
remoteHostSupportsHeaderUpdate in interface ConnectionCapabilitiespublic int getSupportedOOBProxyControlVersion()
getSupportedOOBProxyControlVersion in interface ConnectionCapabilitiespublic int remoteHostSupportsInspections()
remoteHostSupportsInspections in interface ConnectionCapabilitiespublic boolean getRemoteHostSupportsFeatureQueries()
ConnectionCapabilities
getRemoteHostSupportsFeatureQueries in interface ConnectionCapabilitiespublic int getRemoteHostFeatureQuerySelector()
getRemoteHostFeatureQuerySelector in interface ConnectionCapabilitiespublic boolean remoteHostSupportsWhatIsNew()
remoteHostSupportsWhatIsNew in interface ConnectionCapabilitiespublic int getRemoteHostUpdateVersion()
ConnectionCapabilities
getRemoteHostUpdateVersion in interface ConnectionCapabilitiespublic int remostHostIsActiveDHTNode()
ConnectionCapabilities
remostHostIsActiveDHTNode in interface ConnectionCapabilitiespublic int remostHostIsPassiveDHTNode()
ConnectionCapabilities
remostHostIsPassiveDHTNode in interface ConnectionCapabilitiespublic int remoteHostIsPassiveLeafNode()
ConnectionCapabilities
remoteHostIsPassiveLeafNode in interface ConnectionCapabilitiespublic int getCapability(ConnectionCapabilities.Capability capability)
getCapability in interface ConnectionCapabilitiespublic HandshakeResponse getHeadersWritten()
getHeadersWritten in interface ConnectionCapabilitiespublic boolean isCapabilitiesVmSet()
isCapabilitiesVmSet in interface ConnectionCapabilitiespublic void setCapabilitiesVendorMessage(CapabilitiesVM vm)
setCapabilitiesVendorMessage in interface ConnectionCapabilitiespublic void setHeadersRead(HandshakeResponse createResponse)
setHeadersRead in interface ConnectionCapabilitiespublic void setHeadersWritten(HandshakeResponse writtenHeaders)
setHeadersWritten in interface ConnectionCapabilitiespublic void setMessagesSupportedVendorMessage(MessagesSupportedVendorMessage vm)
setMessagesSupportedVendorMessage in interface ConnectionCapabilitiespublic boolean canAcceptIncomingTCP()
canAcceptIncomingTCP in interface ConnectionCapabilitiespublic boolean canDoFWT()
canDoFWT in interface ConnectionCapabilities
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||