com.aelitis.azureus.core.peer.cache.cachelogic
Class CLCacheDiscovery
java.lang.Object
com.aelitis.azureus.core.peer.cache.cachelogic.CLCacheDiscovery
- All Implemented Interfaces:
- CacheDiscoverer
public class CLCacheDiscovery
- extends java.lang.Object
- implements CacheDiscoverer
Method Summary |
java.net.InetAddress[] |
findCache(java.net.URL announce_url,
byte[] hash)
|
java.net.InetAddress[] |
findCache(java.net.URL announce_url,
java.lang.String hex_hash)
|
CachePeer |
lookup(byte[] peer_id,
java.net.InetAddress ip,
int port)
|
CachePeer[] |
lookup(TOTorrent torrent)
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CDPDomainName
public static final java.lang.String CDPDomainName
- See Also:
- Constant Field Values
CDPServerName
public static final java.lang.String CDPServerName
- See Also:
- Constant Field Values
CDPPort
public static final int CDPPort
- See Also:
- Constant Field Values
CDPVersion
public static final int CDPVersion
- See Also:
- Constant Field Values
CDPTimeout
public static final int CDPTimeout
- See Also:
- Constant Field Values
CLCacheDiscovery
public CLCacheDiscovery()
findCache
public java.net.InetAddress[] findCache(java.net.URL announce_url,
java.lang.String hex_hash)
findCache
public java.net.InetAddress[] findCache(java.net.URL announce_url,
byte[] hash)
lookup
public CachePeer[] lookup(TOTorrent torrent)
- Specified by:
lookup
in interface CacheDiscoverer
lookup
public CachePeer lookup(byte[] peer_id,
java.net.InetAddress ip,
int port)
- Specified by:
lookup
in interface CacheDiscoverer
main
public static void main(java.lang.String[] args)