|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.search.HostData
This class contains data about a host that has returned a query hit, as opposed to the data about the file itself, which is contained in Response.
Constructor Summary | |
HostData(QueryReply reply)
Constructs a new HostData instance from a QueryReply. |
Method Summary | |
byte[] |
getClientGUID()
Accessor for the client guid for the host. |
java.lang.String |
getIP()
Accessor for the ip address of the host sending the reply. |
byte[] |
getMessageGUID()
Accessor for the message guid. |
int |
getPort()
Accessor for the port of the host sending the reply. |
java.util.Set |
getPushProxies()
Returns the Set of push proxies, which can be empty. |
int |
getQuality()
Accessor for the quality of results returned from this host, based on firewalled status, whether or not it has upload slots, etc. |
int |
getSpeed()
Accessor for the speed (bandwidth) of the remote host. |
java.lang.String |
getVendorCode()
Accessor for the vendor code of the host. |
boolean |
isBrowseHostEnabled()
Returns whether or not the remote host has browse host enabled. |
boolean |
isBusy()
Returns whether or not the remote host is busy. |
boolean |
isChatEnabled()
Returns whether or not the remote host has chat enabled. |
boolean |
isFirewalled()
Returns whether or not the remote host is firewalled. |
boolean |
isMeasuredSpeed()
Returns whether or not the remote host is reporting a speed that has been measured by the application, as opposed to simply selected by the user.. |
boolean |
isReplyToMulticastQuery()
Returns whether or not this was a response to a multicast query. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HostData(QueryReply reply)
reply
- the QueryReply instance from which
host data should be extracted.Method Detail |
public byte[] getClientGUID()
public java.lang.String getVendorCode()
public byte[] getMessageGUID()
public int getSpeed()
public int getQuality()
public java.lang.String getIP()
public int getPort()
public boolean isFirewalled()
public boolean isBusy()
public boolean isBrowseHostEnabled()
public boolean isChatEnabled()
public boolean isMeasuredSpeed()
public boolean isReplyToMulticastQuery()
public java.util.Set getPushProxies()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |