| java.lang.Object seda.sandStorm.lib.Gnutella.GnutellaPacket seda.sandStorm.lib.Gnutella.GnutellaQueryPacket
GnutellaQueryPacket | public class GnutellaQueryPacket extends GnutellaPacket (Code) | | A Gnutella query packet.
|
Constructor Summary | |
public | GnutellaQueryPacket(byte[] payload) Create a query packet with the given payload. | public | GnutellaQueryPacket(GnutellaGUID guid, int ttl, int hops, byte[] payload) Create a query packet with the given GUID, TTL, hops, and payload. | public | GnutellaQueryPacket(String searchterm, int minspeed) Create a query packet with the given search term and minspeed. |
GnutellaQueryPacket | public GnutellaQueryPacket(byte[] payload)(Code) | | Create a query packet with the given payload. The payload should
conform to the format specified by the Gnutella protocol.
|
GnutellaQueryPacket | public GnutellaQueryPacket(GnutellaGUID guid, int ttl, int hops, byte[] payload)(Code) | | Create a query packet with the given GUID, TTL, hops, and payload.
|
GnutellaQueryPacket | public GnutellaQueryPacket(String searchterm, int minspeed)(Code) | | Create a query packet with the given search term and minspeed.
|
getMinSpeed | public int getMinSpeed()(Code) | | Return the minimum speed requested by this query packet.
|
getSearchTerm | public String getSearchTerm()(Code) | | Return the search term contained in this query packet.
|
prepareForSend | protected void prepareForSend()(Code) | | |
|
|