FileDocCategorySizeDatePackage
ClientIDGenerator.javaAPI DocAzureus 3.0.3.42358Thu Feb 09 19:43:12 GMT 2006org.gudy.azureus2.plugins.clientid

ClientIDGenerator

public interface ClientIDGenerator
author
parg

Fields Summary
public static final String
PR_URL
public static final String
PR_USER_AGENT
Constructors Summary
Methods Summary
public java.lang.String[]filterHTTP(java.lang.String[] lines_in)
For more complex situations a filter approach is used. The lines of the request are passed in for modification and return Enabled when the generator is specified as a filter

param
lines_in
return

public voidgenerateHTTPProperties(java.util.Properties properties)
generate appropriate properties to be supplied to HTTP(S) URL connection If you want to access the torrents then you need to decode the URL to extract the hashes and then look them up (for scrape there could be multiple torrents) Enabled when the generator isn't specified as a filter

param
torrent
param
properties

public byte[]generatePeerID(org.gudy.azureus2.plugins.torrent.Torrent torrent, boolean for_tracker)
generate a peer id - must be exactly 20 bytes

param
torrent
param
for_tracker generator to give to tracker or for peer-peer comms
return