net.i2p.client.naming
Class LookupDest
java.lang.Object
net.i2p.client.naming.LookupDest
class LookupDest
- extends java.lang.Object
Connect via I2CP and ask the router to look up
the lease of a hash, convert it to a Destination and return it.
Obviously this can take a while.
All calls are blocking and return null on failure.
Timeout is set to 10 seconds in I2PSimpleSession.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LookupDest
protected LookupDest(I2PAppContext context)
lookupBase32Hash
static Destination lookupBase32Hash(I2PAppContext ctx,
java.lang.String key)
lookupHash
static Destination lookupHash(I2PAppContext ctx,
byte[] h)
- static Destination lookupBase64Hash(I2PAppContext ctx, String key) {
byte[] h = Base64.decode(key);
if (h == null)
return null;
return lookupHash(ctx, h);
}
main
public static void main(java.lang.String[] args)