Packages that use Destination
Package
Description
The SusiDNS webapp, which is the user interface for the addressbook application and the local naming service (hosts database) implemented in
net.i2p.client.naming. Address book application for fetching and maintaining I2P host databases from subscription sources.
Interfaces and factories for the base I2P SDK used to develop applications that communicate through I2P.
Provides a standard way for reading and writing messages transferred over I2P so that the recipient has an authenticated mechanism to reply to the sender.
Internal implementation of the I2P client SDK - the client side of the Invisible Internet Client Protocol (I2CP), separating implementation from the interfaces in
net.i2p.client. Naming service for resolving human-readable names (such as ident.i2p) into I2P destinations, providing a standard interface without JNDI complexity.
API, interfaces, and factory for a TCP-like (reliable, authenticated, in order) set of sockets for communicating over IP-like (unreliable, unauthenticated, unordered) I2P messages.
Implementation of a TCP-like (reliable, authenticated, in order) set of sockets for communicating over the IP-like (unreliable, unauthenticated, unordered) I2P messages.
Common data structures used by the I2P protocols: Destination, LeaseSet, PublicKey, Signature, Certificate and their friends.
The Invisible Internet Client Protocol (I2CP) allows applications simplified access to I2P network without requiring them to deal with the issues involved with the Invisible Internet Network Protocol (I2NP).
Implementation of preconfigured tunnels for clients and servers, including special-purpose tunnels for IRC, SOCKS, HTTP and streaming.
Definition-based incoming connection filter for server tunnels, with fine-grained access control by destination.
SOCKS 4, 4a and 5 server implementations exposing I2P client tunnels to SOCKS clients.
StreamR adaptive-rate streaming tunnel: streams audio and video over a single I2P tunnel, adapting the encoder rate to the measured tunnel bandwidth.
Datagram plumbing for UDP tunnels: sinks and sources that bridge a local UDP socket and an I2P stream, framing each datagram onto the stream and back.
Base classes for UDP client and server tunnels, mapping a local UDP port to an I2P tunnel through the sinks and sources in
net.i2p.i2ptunnel.udp. Public API classes for programmatic tunnel configuration and management, providing a stable API for external applications, including the Android client.
The I2PTunnel configuration web interface (i2ptunnel.war): servlets and helpers for creating and editing tunnels.
The I2P router application handles I2P network communication.
Router-side implementation of the Invisible Internet Client Protocol (I2CP): client sessions over plain or TLS sockets, message delivery, and lease and tunnel management on behalf of clients.
The Double Ratchet with X25519 key agreement and ECIES hybrid encryption, used by the NTCP2 and SSU transports for session encryption.
Simplified fake implementations of router interfaces (comm system and friends) for testing and embedded builds.
Garlic message creation, parsing and handling, and the outbound message jobs: one-shot sends, source routing and delivery status handling.
The router's default naming service, BlockfileNamingService, backed by the Metanotion BlockFile database (
net.metanotion) in hostsdb.dat. The Kademlia distributed hash table (DHT) network database: lookup, store and explore jobs, the data store, the floodfill variants, and lookup throttling.
Tunnel pool management: pool lifecycle, peer selection, build scheduling and failure handling for client and exploratory tunnels.
Helpers and handlers for the router console user interface, packaged in routerconsole.war and accessible only from JSP files.
The SAM bridge: a simple text protocol server letting applications in any language use I2P streaming and datagram sessions without implementing the Invisible Internet Client Protocol (I2CP).
I2P version of the Snark BitTorrent client, enhanced for I2P: peers are I2P destinations, torrents can be served anonymously as hidden services, and metadata carries I2P-specific comment fields.
BitTorrent distributed hash table (DHT) implementation following the Mainline protocol, for trackerless peer discovery.
Uses of Destination in i2p.susi.dns
Constructors in i2p.susi.dns with parameters of type DestinationModifierConstructorDescriptionAddressBean(String name, Destination destination) Constructs an AddressBean with hostname and destination object.Uses of Destination in net.i2p.addressbook
Methods in net.i2p.addressbook that return DestinationModifier and TypeMethodDescriptionprivate DestinationHostChecker.getDestination(String hostname) Get destination for a hostname from naming service.Methods in net.i2p.addressbook with parameters of type DestinationModifier and TypeMethodDescriptionprivate HostChecker.PingResultHostChecker.performLeaseSetLookup(String hostname, Destination destination) Perform LeaseSet lookup as the first check Any cached LeaseSet marks the host up directly — even an expired one proves the host exists.private HostChecker.PingResultHostChecker.pingDestination(String hostname, Destination destination) Ping destination using single tunnel and I2Ping-style retry handling Falls back to EepHead HTTP HEAD request if ping fails, accepts leaseSetTypes parameter.private HostChecker.PingResultHostChecker.pingDestination(String hostname, Destination destination, String leaseSetTypes) Ping destination using single tunnel and I2Ping-style retry handling Falls back to EepHead HTTP HEAD request if ping fails, accepts leaseSetTypes parameter.private HostChecker.PingResultHostChecker.pingDestination(String hostname, Destination destination, String leaseSetTypes, boolean saveResult) Ping destination using single tunnel and I2Ping-style retry handling Falls back to EepHead HTTP HEAD request if ping fails, accepts leaseSetTypes parameter.Method parameters in net.i2p.addressbook with type arguments of type DestinationModifier and TypeMethodDescriptionprivate static voidDaemon.logMismatch(Log log, String action, String name, List<Destination> dests, String olddest, AddressBook addressbook) Log a destination mismatch with the router.Uses of Destination in net.i2p.client
Methods in net.i2p.client that return DestinationModifier and TypeMethodDescriptionI2PClient.createDestination(OutputStream destKeyStream) Create a new destination with the default certificate creation properties and store it, along with the private encryption and signing keys at the specified location.I2PClient.createDestination(OutputStream destKeyStream, SigType type) Create a destination with the given signature type.I2PClient.createDestination(OutputStream destKeyStream, Certificate cert) Create a new destination with the given certificate and store it, along with the private encryption and signing keys at the specified location.LookupResult.getDestination()Destination of the lookup, or null on failure.I2PSession.getMyDestination()Retrieve the Destination this session serves as the endpoint for.I2PSession.lookupDest(String name) Ask the router to lookup a Destination by host name.I2PSession.lookupDest(String name, long maxWait) Ask the router to lookup a Destination by host name.I2PSession.lookupDest(Hash h) Lookup a Destination by Hash.I2PSession.lookupDest(Hash h, long maxWait) Lookup a Destination by Hash.Methods in net.i2p.client with parameters of type DestinationModifier and TypeMethodDescriptionbooleanI2PSession.sendMessage(Destination dest, byte[] payload) Send a new message to the given destination, containing the specified payload, returning true if the router feels confident that the message was delivered.booleanI2PSession.sendMessage(Destination dest, byte[] payload, int offset, int size) Send a new message to the given destination, containing the specified payload, returning true if the router feels confident that the message was delivered.booleanI2PSession.sendMessage(Destination dest, byte[] payload, int proto, int fromport, int toport) See I2PSessionMuxedImpl for proto/port details.booleanI2PSession.sendMessage(Destination dest, byte[] payload, int offset, int size, int proto, int fromPort, int toPort, SendMessageOptions options) See I2PSessionMuxedImpl for proto/port details.longI2PSession.sendMessage(Destination dest, byte[] payload, int offset, int size, int proto, int fromPort, int toPort, SendMessageOptions options, SendMessageStatusListener listener) Send a message and request an asynchronous notification of delivery status.booleanI2PSession.sendMessage(Destination dest, byte[] payload, int offset, int size, SessionKey keyUsed, Set<SessionTag> tagsSent) End-to-End Crypto is disabled, tags and keys are ignored.booleanI2PSession.sendMessage(Destination dest, byte[] payload, int offset, int size, SessionKey keyUsed, Set<SessionTag> tagsSent, int proto, int fromPort, int toPort) See I2PSessionMuxedImpl for proto/port details.booleanI2PSession.sendMessage(Destination dest, byte[] payload, int offset, int size, SessionKey keyUsed, Set<SessionTag> tagsSent, long expire) End-to-End Crypto is disabled, tags and keys are ignored.booleanI2PSession.sendMessage(Destination dest, byte[] payload, int offset, int size, SessionKey keyUsed, Set<SessionTag> tagsSent, long expire, int proto, int fromPort, int toPort) See I2PSessionMuxedImpl for proto/port details.booleanI2PSession.sendMessage(Destination dest, byte[] payload, int offset, int size, SessionKey keyUsed, Set<SessionTag> tagsSent, long expire, int proto, int fromPort, int toPort, int flags) See I2PSessionMuxedImpl for proto/port details.booleanI2PSession.sendMessage(Destination dest, byte[] payload, SessionKey keyUsed, Set<SessionTag> tagsSent) End-to-End Crypto is disabled, tags and keys are ignored!Uses of Destination in net.i2p.client.datagram
Fields in net.i2p.client.datagram declared as DestinationModifier and TypeFieldDescriptionprivate final DestinationDatagram2._fromThe sender of the datagram.private DestinationI2PDatagramDissector.rxDestThe destination received with the datagram.Methods in net.i2p.client.datagram that return DestinationModifier and TypeMethodDescriptionI2PDatagramDissector.extractSender()Extract the sender of an I2P repliable datagram (previously loaded with the loadI2PDatagram() method), without verifying the datagram signature.Datagram2.getSender()The sender of an I2P repliable datagram (previously loaded with the load() method).I2PDatagramDissector.getSender()The sender of an I2P repliable datagram (previously loaded with the loadI2PDatagram() method), verifying the datagram signature.Constructors in net.i2p.client.datagram with parameters of type DestinationModifierConstructorDescriptionprivateDatagram2(Destination dest, byte[] data, Properties options) As returned fromDatagram2.load(I2PAppContext, I2PSession, byte[]).Uses of Destination in net.i2p.client.impl
Fields in net.i2p.client.impl declared as DestinationModifier and TypeFieldDescriptionprivate final DestinationLkupResult._destThe destination found, null if there was none.private final DestinationI2PSessionImpl._myDestinationOur destination.I2PSessionImpl.LookupWaiter.destinationThe reply; synchronized on this.Fields in net.i2p.client.impl with type parameters of type DestinationModifier and TypeFieldDescriptionprivate final Map<Destination, RequestLeaseSetMessageHandler.LeaseInfo> RequestLeaseSetMessageHandler._existingLeaseSetsThe lease sets already published, by destination.private static final Map<Object, Destination> I2PSessionImpl._lookupCacheCache of Destination lookups, keyed by a Hash or a String.Methods in net.i2p.client.impl that return DestinationModifier and TypeMethodDescriptionI2PClientImpl.createDestination(OutputStream destKeyStream) Create a destination with a DSA 1024/160 signature type and a null certificate.I2PClientImpl.createDestination(OutputStream destKeyStream, SigType type) Create a destination with the given signature type.I2PClientImpl.createDestination(OutputStream destKeyStream, Certificate cert) Create the destination with the given payload and write it out along with the PrivateKey and SigningPrivateKey to the destKeyStreamLkupResult.getDestination()Destination found by the lookup.I2PSessionImpl.getMyDestination()Retrieve the destination of the session.I2PSessionImpl.lookupDest(String name) Ask the router to lookup a Destination by host name.I2PSessionImpl.lookupDest(String name, long maxWait) Ask the router to lookup a Destination by host name.I2PSessionImpl.lookupDest(Hash h) Blocking.I2PSessionImpl.lookupDest(Hash h, long maxWait) Blocking.SubSession.lookupDest(String name) Ask the router to lookup a Destination by host name.SubSession.lookupDest(String name, long maxWait) Ask the router to lookup a Destination by host name.SubSession.lookupDest(Hash h) Blocking.SubSession.lookupDest(Hash h, long maxWait) Looks up a Destination, blocking up to the given wait for the answer.Methods in net.i2p.client.impl with parameters of type DestinationModifier and TypeMethodDescription(package private) voidI2PSessionImpl.destReceived(long nonce, Destination d) Called by the message handler on reception of HostReplyMessage.(package private) voidI2PSessionImpl.destReceived(Destination d) Called by the message handler on reception of DestReplyMessage.(package private) voidSubSession.destReceived(long nonce, Destination d) Called by the message handler on reception of HostReplyMessage.(package private) voidSubSession.destReceived(Destination d) Called by the message handler on reception of DestReplyMessagevoidRequestLeaseSetMessageHandler.removeLeaseSet(Destination dest) Remove the cached lease info for the given destination.protected booleanI2PSessionImpl2.sendBestEffort(Destination dest, byte[] payload, long expires, int flags) Send a best-effort message with the given flags.protected booleanI2PSessionImpl2.sendBestEffort(Destination dest, byte[] payload, SessionKey keyUsed, Set<SessionTag> tagsSent, long expires) Send a message with best effort delivery.voidI2CPMessageProducer.sendMessage(I2PSessionImpl session, Destination dest, long nonce, byte[] payload, long expires, int flags) Package up and send the payload to the router for delivery.voidI2CPMessageProducer.sendMessage(I2PSessionImpl session, Destination dest, long nonce, byte[] payload, SendMessageOptions options) Package up and send the payload to the router for delivery.voidI2CPMessageProducer.sendMessage(I2PSessionImpl session, Destination dest, long nonce, byte[] payload, SessionTag tag, SessionKey key, Set<SessionTag> tags, SessionKey newKey, long expires) Package up and send the payload to the router for delivery.booleanI2PSessionImpl2.sendMessage(Destination dest, byte[] payload) Unused, see MuxedImpl override.booleanI2PSessionImpl2.sendMessage(Destination dest, byte[] payload, int offset, int size) Send an I2CP message.booleanI2PSessionImpl2.sendMessage(Destination dest, byte[] payload, int proto, int fromport, int toport) Send an I2CP message.booleanI2PSessionImpl2.sendMessage(Destination dest, byte[] payload, int offset, int size, int proto, int fromport, int toport, SendMessageOptions options) Send an I2CP message.longI2PSessionImpl2.sendMessage(Destination dest, byte[] payload, int offset, int size, int proto, int fromport, int toport, SendMessageOptions options, SendMessageStatusListener listener) Send an I2CP message.booleanI2PSessionImpl2.sendMessage(Destination dest, byte[] payload, int offset, int size, SessionKey keyUsed, Set<SessionTag> tagsSent) Send a message with session key and tags.booleanI2PSessionImpl2.sendMessage(Destination dest, byte[] payload, int offset, int size, SessionKey keyUsed, Set<SessionTag> tagsSent, int proto, int fromport, int toport) Send an I2CP message.booleanI2PSessionImpl2.sendMessage(Destination dest, byte[] payload, int offset, int size, SessionKey keyUsed, Set<SessionTag> tagsSent, long expires) Unused? See the MuxedImpl override.booleanI2PSessionImpl2.sendMessage(Destination dest, byte[] payload, int offset, int size, SessionKey keyUsed, Set<SessionTag> tagsSent, long expire, int proto, int fromport, int toport) Send an I2CP message.booleanI2PSessionImpl2.sendMessage(Destination dest, byte[] payload, int offset, int size, SessionKey keyUsed, Set<SessionTag> tagsSent, long expire, int proto, int fromport, int toport, int flags) Send an I2CP message.booleanI2PSessionImpl2.sendMessage(Destination dest, byte[] payload, SessionKey keyUsed, Set<SessionTag> tagsSent) Send a message with session key and tags.booleanI2PSessionMuxedImpl.sendMessage(Destination dest, byte[] payload) Send an I2CP message, with the protocol and ports unset.booleanI2PSessionMuxedImpl.sendMessage(Destination dest, byte[] payload, int proto, int fromport, int toport) Send an I2CP message.booleanI2PSessionMuxedImpl.sendMessage(Destination dest, byte[] payload, int offset, int size, int proto, int fromPort, int toPort, SendMessageOptions options) See SendMessageOptions for option details.longI2PSessionMuxedImpl.sendMessage(Destination dest, byte[] payload, int offset, int size, int proto, int fromPort, int toPort, SendMessageOptions options, SendMessageStatusListener listener) Send a message and request an asynchronous notification of delivery status.booleanI2PSessionMuxedImpl.sendMessage(Destination dest, byte[] payload, int offset, int size, SessionKey keyUsed, Set<SessionTag> tagsSent, int proto, int fromport, int toport) Send a message with session key and tags.booleanI2PSessionMuxedImpl.sendMessage(Destination dest, byte[] payload, int offset, int size, SessionKey keyUsed, Set<SessionTag> tagsSent, long expires) Send a message with session key and tags.booleanI2PSessionMuxedImpl.sendMessage(Destination dest, byte[] payload, int offset, int size, SessionKey keyUsed, Set<SessionTag> tagsSent, long expires, int proto, int fromPort, int toPort) Send a message with protocol and port information.booleanI2PSessionMuxedImpl.sendMessage(Destination dest, byte[] payload, int offset, int size, SessionKey keyUsed, Set<SessionTag> tagsSent, long expires, int proto, int fromPort, int toPort, int flags) Send a message with protocol, port, and flags.protected booleanI2PSessionImpl2.sendNoEffort(Destination dest, byte[] payload, long expires, int flags) Same asI2PSessionImpl2.sendBestEffort(Destination, byte[], SessionKey, Set, long), except we do not expect any MessageStatusMessage responses - not for accepted, or success, or failure.private voidI2PSessionMuxedImpl.sendNoEffort(Destination dest, byte[] payload, SendMessageOptions options) Send a message without expecting a response.Constructors in net.i2p.client.impl with parameters of type DestinationModifierConstructorDescriptionLeaseInfo(List<PrivateKey> privKeys, Destination dest) Existing crypto keys, new signing key, LS1 only.LeaseInfo(Destination dest, List<EncType> types, boolean isLS2) New keys.(package private)LkupResult(int code, Destination dest) Lkup result.(package private)LkupResult(int code, Destination dest, int nonce) Full constructor.A completed lookup, for a destination we already have.Uses of Destination in net.i2p.client.naming
Fields in net.i2p.client.naming with type parameters of type DestinationModifier and TypeFieldDescriptionprivate static final Map<String, Destination> DummyNamingService._cacheThe LRU cache, with no expiration time.Methods in net.i2p.client.naming that return DestinationModifier and TypeMethodDescriptionprotected static DestinationLook up a cached destination.DummyNamingService.lookup(String hostname, Properties lookupOptions, Properties storedOptions) Throws, this service knows no destinations.EepGetNamingService.lookup(String hostname, Properties lookupOptions, Properties storedOptions) HostsTxtNamingService.lookup(String hostname, Properties lookupOptions, Properties storedOptions) MetaNamingService.lookup(String hostname, Properties lookupOptions, Properties storedOptions) Look up a hostname.abstract DestinationNamingService.lookup(String hostname, Properties lookupOptions, Properties storedOptions) Same as lookup(hostname) but with in and out options Note that whether this (and lookup(hostname)) resolve Base 32 addresses in the form {52 chars}.b32.i2p is NamingService-specific.Same asNamingService.lookupBase32(String, int)but with the SHA256 Hash precalculated This implementation returns null.SingleFileNamingService.lookup(String hostname, Properties lookupOptions, Properties storedOptions) Will strip a "www." prefix and retry if lookup fails.NamingService.lookupBase32(String hostname, int timeout) Lookup a Base 32 address.(package private) static DestinationLookupDest.lookupBase32Hash(I2PAppContext ctx, String key) Look up a destination by Base32 hash.protected DestinationNamingService.lookupBase64(String hostname) If the hostname is a valid Base64 encoded destination, return the decoded Destination.private static DestinationLookupDest.lookupHash(I2PAppContext ctx, byte[] h) Look up a destination by hash.(package private) static DestinationLookupDest.lookupHostname(I2PAppContext ctx, String hostname) Any hostname, but this is for long-format b32.Methods in net.i2p.client.naming that return types with arguments of type DestinationModifier and TypeMethodDescriptionMetaNamingService.getEntries(Properties options) All services aggregated.NamingService.getEntries()Warning - This obviously brings the whole database into memory, so use is discouraged.NamingService.getEntries(Properties options) Warning - This will bring the whole database into memory if options is null, empty, or unsupported, use with caution.SingleFileNamingService.getEntries(Properties options) Return all entries matching the options.For NamingServices that support multiple Destinations for a single hostname, return all of them.NamingService.lookupAll(String hostname, Properties lookupOptions, List<Properties> storedOptions) For NamingServices that support multiple Destinations and Properties for a single hostname, return all of them.Methods in net.i2p.client.naming with parameters of type DestinationModifier and TypeMethodDescriptionbooleanNamingService.addDestination(String hostname, Destination d) Add a Destination to an existing hostname's entry in the addressbook.booleanNamingService.addDestination(String hostname, Destination d, Properties options) Add a Destination to an existing hostname's entry in the addressbook.voidNamingServiceListener.entryAdded(NamingService ns, String hostname, Destination dest, Properties options) Called when a new naming service entry is added.voidNamingServiceListener.entryChanged(NamingService ns, String hostname, Destination dest, Properties options) Called when a naming service entry changes.booleanHostsTxtNamingService.put(String hostname, Destination d, Properties options) booleanMetaNamingService.put(String hostname, Destination d, Properties options) Stores in the last service.booleanNamingService.put(String hostname, Destination d) Add a hostname and Destination to the addressbook.booleanNamingService.put(String hostname, Destination d, Properties options) Add a hostname and Destination to the addressbook.booleanSingleFileNamingService.put(String hostname, Destination d, Properties options) Store a hostname-destination mapping.protected static voidDummyNamingService.putCache(String s, Destination d) Provide basic static caching for all services.booleanHostsTxtNamingService.putIfAbsent(String hostname, Destination d, Properties options) booleanMetaNamingService.putIfAbsent(String hostname, Destination d, Properties options) Stores in the last service.booleanNamingService.putIfAbsent(String hostname, Destination d) Add a hostname and Destination to the addressbook.booleanNamingService.putIfAbsent(String hostname, Destination d, Properties options) Add a hostname and Destination to the addressbook.booleanSingleFileNamingService.putIfAbsent(String hostname, Destination d, Properties options) Store a hostname-destination mapping if not already present.booleanNamingService.remove(String hostname, Destination d) Remove a hostname's entry only if it contains the Destination d.booleanNamingService.remove(String hostname, Destination d, Properties options) Remove a hostname's entry only if it contains the Destination d.MetaNamingService.reverseLookup(Destination dest, Properties options) NamingService.reverseLookup(Destination dest) Reverse lookup a destination.NamingService.reverseLookup(Destination d, Properties options) Same as reverseLookup(dest) but with options This implementation returns null.SingleFileNamingService.reverseLookup(Destination dest, Properties options) Reverse lookup a destination to a hostname.NamingService.reverseLookupAll(Destination dest) Reverse lookup a destination This implementation returns reverseLookupAll(dest, null).NamingService.reverseLookupAll(Destination d, Properties options) Same as reverseLookupAll(dest) but with options This implementation returns the result from reverseLookup, or null.booleanNamingService.update(String hostname, Destination d, Properties options) Fails if entry did not previously exist.Method parameters in net.i2p.client.naming with type arguments of type DestinationModifier and TypeMethodDescriptionbooleanNamingService.putAll(Map<String, Destination> entries, Properties options) Put all the entries, each with the given options.Uses of Destination in net.i2p.client.streaming
Fields in net.i2p.client.streaming declared as DestinationMethods in net.i2p.client.streaming that return DestinationModifier and TypeMethodDescriptionI2PSocketAddress.getAddress()Does a naming service lookup to resolve the dest if this was created unresolved or if the resolution failed in the constructor.I2PSocket.getPeerDestination()The destination of the connected peer.I2PSocket.getThisDestination()Returns the Destination of this side of the socket.Methods in net.i2p.client.streaming with parameters of type DestinationModifier and TypeMethodDescriptionbooleanIncomingConnectionFilter.allowDestination(Destination d) Check if the destination should be allowed to establish an incoming connection.I2PSocketManager.connect(Destination peer) Create a new connected socket (block until the socket is created).I2PSocketManager.connect(Destination peer, I2PSocketOptions options) Create a new connected socket (block until the socket is created).I2PSocketManager.connectToSocket(Destination peer) Like connect() but returns a real Socket, and throws only IOE, for easier porting of apps.I2PSocketManager.connectToSocket(Destination peer, int timeout) Like connect() but returns a real Socket, and throws only IOE, for easier porting of apps.booleanI2PSocketManager.ping(Destination peer, int localPort, int remotePort, long timeoutMs) Ping the specified peer, returning true if they replied to the ping within the timeout specified, false otherwise.byte[]I2PSocketManager.ping(Destination peer, int localPort, int remotePort, long timeoutMs, byte[] payload) Ping the specified peer, returning true if they replied to the ping within the timeout specified, false otherwise.booleanI2PSocketManager.ping(Destination peer, long timeoutMs) Ping the specified peer, returning true if they replied to the ping within the timeout specified, false otherwise.Constructors in net.i2p.client.streaming with parameters of type DestinationModifierConstructorDescriptionI2PSocketAddress(Destination dest, int port) Does not do a reverse lookup.Uses of Destination in net.i2p.client.streaming.impl
Fields in net.i2p.client.streaming.impl declared as DestinationModifier and TypeFieldDescriptionprivate final DestinationI2PSocketFull._localPeerThe local end of the connection.protected DestinationPacket._optionFromSending destination, when that option is included.private DestinationConnection._remotePeerDestination of the remote peer, or null if not yet established.private final DestinationI2PSocketFull._remotePeerThe remote end of the connection.private final DestinationPacketLocal._toThe peer the packet was sent to.Fields in net.i2p.client.streaming.impl with type parameters of type DestinationModifier and TypeFieldDescriptionprivate final Map<Destination, TCBShare.Entry> TCBShare._cacheCongestion control entries, by destination.Methods in net.i2p.client.streaming.impl that return DestinationModifier and TypeMethodDescriptionPacket.getOptionalFrom()Sender of the packet, only included if the flag for it is set.I2PSocketFull.getPeerDestination()Gets the remote peer's destination.StandardSocket.getPeerDestination()Returns the peer destination of the underlying I2PSocket.Connection.getRemotePeer()Destination of the remote peer.I2PSocketFull.getThisDestination()Gets this side's destination.PacketLocal.getTo()The peer this packet was sent to.Methods in net.i2p.client.streaming.impl with parameters of type DestinationModifier and TypeMethodDescriptionprivate ConnectionConnectionManager.acquireFromPool(Destination peer) Try to acquire a pooled connection for the given destination.ConnectionManager.connect(Destination peer, ConnectionOptions opts, I2PSession session) Build a new connection to the given peer.I2PSocketManagerFull.connect(Destination peer) Create a new connected socket.I2PSocketManagerFull.connect(Destination peer, I2PSocketOptions options) Create a new connected socket.I2PSocketManagerFull.connectToSocket(Destination peer) Like connect() but returns a real Socket, and throws only IOE, for easier porting of apps.I2PSocketManagerFull.connectToSocket(Destination peer, int timeout) Like connect() but returns a real Socket, and throws only IOE, for easier porting of apps.private SocketI2PSocketManagerFull.connectToSocket(Destination peer, I2PSocketOptions options) Like connect() but returns a real Socket, and throws only IOE, for easier porting of apps.private ConnectionConnectionManager.finalizeConnection(Connection con, Destination peer, ConnectionOptions opts, long connectStart, boolean fromPool) Common post-creation setup for both pooled and new connections.booleanConnectionManager.ping(Destination peer, int fromPort, int toPort, long timeoutMs) Ping the destination and wait for a pong.booleanConnectionManager.ping(Destination peer, int fromPort, int toPort, long timeoutMs, boolean blocking) Ping the destination, optionally waiting for a pong.booleanConnectionManager.ping(Destination peer, int fromPort, int toPort, long timeoutMs, boolean blocking, ConnectionManager.PingNotifier notifier) Ping the destination, optionally waiting for a pong.byte[]ConnectionManager.ping(Destination peer, int fromPort, int toPort, long timeoutMs, byte[] payload) Ping the destination with a payload and wait for the pong.booleanConnectionManager.ping(Destination peer, long timeoutMs) Ping the destination and wait for a pong.booleanConnectionManager.ping(Destination peer, I2PSession session, int fromPort, int toPort, long timeoutMs) Ping the destination through a specific subsession, waiting for the pong.booleanConnectionManager.ping(Destination peer, I2PSession session, int fromPort, int toPort, long timeoutMs, boolean blocking) Ping the destination through a specific subsession, optionally blocking.byte[]ConnectionManager.ping(Destination peer, I2PSession session, int fromPort, int toPort, long timeoutMs, byte[] payload) Ping the destination with a payload through a specific subsession.booleanI2PSocketManagerFull.ping(Destination peer, int localPort, int remotePort, long timeoutMs) Ping the specified peer, returning true if they replied to the ping within the timeout specified, false otherwise.byte[]I2PSocketManagerFull.ping(Destination peer, int localPort, int remotePort, long timeoutMs, byte[] payload) Ping the specified peer, returning true if they replied to the ping within the timeout specified, false otherwise.booleanI2PSocketManagerFull.ping(Destination peer, long timeoutMs) Ping the specified peer, returning true if they replied to the ping within the timeout specified, false otherwise.booleanI2PSocketManagerFull.ping(Destination peer, I2PSession session, int localPort, int remotePort, long timeoutMs) Ping the specified peer through a specific subsession, returning true if they replied to the ping within the timeout specified, false otherwise.byte[]I2PSocketManagerFull.ping(Destination peer, I2PSession session, int localPort, int remotePort, long timeoutMs, byte[] payload) Ping the specified peer through a specific subsession, returning true if they replied to the ping within the timeout specified, false otherwise.private voidConnectionManager.sendRejectResponse(Packet synPacket, Destination from, Hash fromHash, int retryAfter) Send the configured response for a rejected SYN (RESET, HTTP-style Retry-After payload, or custom payload), subject to the peer's throttler status.voidConnection.setRemotePeer(Destination peer) Remote peer of this connection, non-null.Constructors in net.i2p.client.streaming.impl with parameters of type DestinationModifierConstructorDescriptionPacketLocal(I2PAppContext ctx, Destination to, I2PSession session) Constructor for a packet not bound to a connection.PacketLocal(I2PAppContext ctx, Destination to, Connection con) Constructor for a packet bound to a connection.Uses of Destination in net.i2p.data
Subclasses of Destination in net.i2p.dataModifier and TypeClassDescriptionclassExtend Destination with methods to verify its Certificate.Fields in net.i2p.data declared as DestinationModifier and TypeFieldDescriptionprivate DestinationBlindData._destThe blinded destination, once calculated.protected DestinationLeaseSet._destinationDestination this LeaseSet is for.protected DestinationPrivateKeyFile.destThe destination.Fields in net.i2p.data with type parameters of type DestinationModifier and TypeFieldDescriptionprivate static final Map<SigningPublicKey, Destination> Destination._cacheDestinations by signing key.Methods in net.i2p.data that return DestinationModifier and TypeMethodDescriptionstatic DestinationDestination.create(InputStream in) Pull from cache or return new.PrivateKeyFile.createIfAbsent()Create with the default signature type if nonexistent.PrivateKeyFile.createIfAbsent(SigType type) Create with the specified signature type if nonexistent.private DestinationPrivateKeyFile.createIfAbsent(SigType type, EncType ptype) Create with the specified signature and encryption types if nonexistent.BlindData.getDestination()Gets the destination if known.LeaseSet.getDestination()Warning - will be null for LS2 EncryptedLeaseSets if not decrypted.PrivateKeyFile.getDestination()If the destination is not set, read it in from the file.Methods in net.i2p.data with parameters of type DestinationModifier and TypeMethodDescriptionvoidBlindData.setDestination(Destination d) Sets the destination for this blinded data.voidEncryptedLeaseSet.setDestination(Destination dest) Overridden to set the blinded key.voidLeaseSet.setDestination(Destination dest) Destination for this leaseset.voidPrivateKeyFile.setDestination(Destination d) Destination for this key file.static booleanPrivateKeyFile.verifySignature(Destination d) Verify the signature on a destination.Constructors in net.i2p.data with parameters of type DestinationModifierConstructorDescriptionBlindData(I2PAppContext ctx, Destination dest, SigType blindType, String secret) Creates a new BlindData instance for the given destination.BlindData(I2PAppContext ctx, Destination dest, SigType blindType, String secret, int authType, PrivateKey authKey) Creates a new BlindData instance for the given destination with authentication.PrivateKeyFile(File file, Destination dest, PrivateKey pk, SigningPrivateKey spk) Create a new PrivateKeyFile with a destination and keys.Create from an existing Dest.Uses of Destination in net.i2p.data.i2cp
Fields in net.i2p.data.i2cp declared as DestinationModifier and TypeFieldDescriptionprivate DestinationBlindingInfoMessage._destThe blinded destination.private DestinationDestReplyMessage._destThe destination found for the name.private DestinationHostReplyMessage._destThe destination being replied with.protected DestinationSendMessageMessage._destinationDestination the payload is addressed to.private DestinationSessionConfig._destinationThe destination for this session.Methods in net.i2p.data.i2cp that return DestinationModifier and TypeMethodDescriptionDestReplyMessage.getDestination()Gets the destination this reply resolved to.HostReplyMessage.getDestination()The destination the host accepted, which the client now owns.SendMessageMessage.getDestination()Destination the message is being sent to.SessionConfig.getDestination()Retrieve the destination for which this session is supposed to connect.Constructors in net.i2p.data.i2cp with parameters of type DestinationModifierConstructorDescriptionBlindingInfoMessage(Destination d, SessionId id, int expiration, int authType, SigType blindType, PrivateKey privKey, String secret) Creates a BlindingInfoMessage for a destination.Creates a reply naming the destination the lookup resolved to.HostReplyMessage(SessionId id, Destination d, long reqID, Properties options) A message with RESULT_SUCCESS and a non-null Destination.SendMessageExpiresMessage(SessionId sessID, Destination dest, Payload payload, long nonce) For writing.SendMessageExpiresMessage(SessionId sessID, Destination dest, Payload payload, long nonce, DateAndFlags options) For writing.SendMessageMessage(SessionId sessID, Destination dest, Payload payload, long nonce) For writing.SessionConfig(Destination dest) Create a session configuration stamped with the current creation time.Uses of Destination in net.i2p.i2ptunnel
Fields in net.i2p.i2ptunnel declared as DestinationMethods in net.i2p.i2ptunnel that return DestinationModifier and TypeMethodDescriptionprivate static DestinationI2PTunnel.destFromName(String name, String i2cpHost, String i2cpPort, boolean isSSL, String user, String pw) Resolve a destination from a name or Base64 string.TunnelController.getDestination()Get the destination from the first session that has one.private DestinationFinds the destination for a name or address.private DestinationI2PTunnelHTTPClient.lookupWithTimeout(String hostname, long timeoutMs) Look up a hostname with a timeout to prevent blocking the request handler.Methods in net.i2p.i2ptunnel with parameters of type DestinationModifier and TypeMethodDescriptionprivate StringI2PTunnelIRCServer.cloakDest(Destination d) (Optionally) append 32 bytes of crap to the destination then return the first few characters of the hash of the whole thing, + ".i2p".I2PTunnelClientBase.createI2PSocket(Destination dest) Create a new I2PSocket towards to the specified destination, adding it to the list of connections actually managed by this tunnel.I2PTunnelClientBase.createI2PSocket(Destination dest, int port) Create a new I2PSocket towards to the specified destination, adding it to the list of connections actually managed by this tunnel.I2PTunnelClientBase.createI2PSocket(Destination dest, I2PSocketOptions opt) Create a new I2PSocket towards to the specified destination, adding it to the list of connections actually managed by this tunnel.(package private) I2PSocketI2PTunnelClientBase.createI2PSocket(Destination dest, I2PSocketOptions opt, long deadlineMs) Create a new I2PSocket bounded by a shared request deadline.private I2PSocketI2PTunnelClientBase.createI2PSocketWithFailover(Destination dest, I2PSocketOptions opt, long deadlineMs) Create a new I2PSocket with retry/failover across the session's tunnel pool.private StringI2PTunnelHTTPServer.getTunnelLogId(Destination localDest) Short human-readable identifier for this HTTP server tunnel, e.g.private I2PSocketI2PTunnelHTTPClient.openEmptyReconnect(Destination dest, int port, int emptyBudget, long requestId, boolean quiet) Open a single fresh I2P socket for an empty-response / body-resume reconnect, with the standard attempt budget and dead-pool fail-fast.private voidI2PTunnelHTTPClient.openSpeculativeWarm(Destination dest, int port, int emptyBudget, long requestId, I2PTunnelHTTPClient.WarmSlot slot) Open one secondary I2P socket in the background while the primary is healthy.private I2Ping.PingResultI2Ping.ping(Destination dest, int fromPort, int toPort, long timeout) Attempts to "ping" by opening an I2P socket to the destination.private static voidI2PTunnel.writePubKey(Destination d, OutputStream o, Logging l) Write out the destination to the stream Deprecated - only used by CLI.Uses of Destination in net.i2p.i2ptunnel.access
Methods in net.i2p.i2ptunnel.access with parameters of type DestinationModifier and TypeMethodDescriptionbooleanAccessFilter.allowDestination(Destination d) Determines if a connection to the given destination should be allowed.Uses of Destination in net.i2p.i2ptunnel.socks
Fields in net.i2p.i2ptunnel.socks declared as DestinationModifier and TypeFieldDescriptionprivate static final DestinationSocketWrapper.DUMMY_DESTPlaceholder destination for a connection with no real oneMethods in net.i2p.i2ptunnel.socks that return DestinationModifier and TypeMethodDescriptionSOCKSHeader.getDestination()Resolve the header's hostname through the naming service.SocketWrapper.getPeerDestination()Peer destination of the socket.SocketWrapper.getThisDestination()Local destination of the socket.Methods in net.i2p.i2ptunnel.socks with parameters of type DestinationModifier and TypeMethodDescriptionvoidMultiSink.send(Destination from, int fromPort, int toPort, byte[] data) Send to a single sink looked up by toPortvoidSOCKSUDPPort.send(Destination from, int fromPort, int toPort, byte[] data) May throw RuntimeException from underlying sink.voidSOCKSUDPUnwrapper.send(Destination ignoredFrom, int fromPort, int toPort, byte[] data) May throw RuntimeException from underlying sink.voidSOCKSUDPWrapper.send(Destination from, int fromPort, int toPort, byte[] data) Use the cached header, which should have the host string and portConstructors in net.i2p.i2ptunnel.socks with parameters of type DestinationModifierConstructorDescriptionSOCKSHeader(Destination dest, int port) Make a dummy header from a dest, for those cases where we want to receive unsolicited datagrams.Uses of Destination in net.i2p.i2ptunnel.streamr
Fields in net.i2p.i2ptunnel.streamr declared as DestinationModifier and TypeFieldDescriptionfinal DestinationMultiSource.MSink.destDestination the message is forwarded to.Methods in net.i2p.i2ptunnel.streamr with parameters of type DestinationModifier and TypeMethodDescriptionvoidMultiSource.send(Destination ignoredFrom, int ignoredFromPort, int ignoredToPort, byte[] data) May throw RuntimeException from underlying sinks.voidSubscriber.send(Destination dest, int fromPort, int toPort, byte[] data) Handles subscription or unsubscription requests.Constructors in net.i2p.i2ptunnel.streamr with parameters of type DestinationModifierConstructorDescriptionMSink(Destination dest, int fromPort, int toPort) Create a forwarding entry for one destination.Uses of Destination in net.i2p.i2ptunnel.udp
Fields in net.i2p.i2ptunnel.udp declared as DestinationModifier and TypeFieldDescriptionprotected final DestinationI2PSink.destDestination every datagram is addressed to, fixed at construction.Methods in net.i2p.i2ptunnel.udp with parameters of type DestinationModifier and TypeMethodDescriptionvoidI2PSink.send(Destination src, int fromPort, int ignToPort, byte[] data) Sends data to the fixed destination configured in the constructor.voidI2PSinkAnywhere.send(Destination to, byte[] data) Sends data to the specified destination using default ports.voidI2PSinkAnywhere.send(Destination to, int fromPort, int toPort, byte[] data) Sends data to the specified destination using the given ports.voidSink.send(Destination src, int fromPort, int toPort, byte[] data) Sends a datagram to the given destination.voidUDPSink.send(Destination src, int fromPort, int toPort, byte[] data) Sends the data to the configured remote host and port.Constructors in net.i2p.i2ptunnel.udp with parameters of type DestinationModifierConstructorDescriptionI2PSink(I2PSession sess, Destination dest) Creates a repliable (non-raw) sink for the given session and destination.I2PSink(I2PSession sess, Destination dest, boolean raw) Creates a sink for the given session and destination.I2PSink(I2PSession sess, Destination dest, boolean raw, int toPort) Creates a sink for the given session, destination, and port.Uses of Destination in net.i2p.i2ptunnel.udpTunnel
Methods in net.i2p.i2ptunnel.udpTunnel with parameters of type DestinationModifier and TypeMethodDescriptionvoidI2PTunnelUDPClientBase.send(Destination to, int fromPort, int toPort, byte[] data) Sends data through the I2P sink to the configured destination.voidI2PTunnelUDPServerBase.send(Destination to, int fromPort, int toPort, byte[] data) Sends data through the I2P sink.Uses of Destination in net.i2p.i2ptunnel.ui
Fields in net.i2p.i2ptunnel.ui declared as DestinationModifier and TypeFieldDescriptionprivate DestinationTunnelConfig._destThe tunnel's destination, for server tunnels.Methods in net.i2p.i2ptunnel.ui that return DestinationModifier and TypeMethodDescriptionGeneralHelper.getAltDestination(int tunnel) Retrieve the alternate tunnel Destination from the key file.GeneralHelper.getDestination(int tunnel) Retrieve the tunnel Destination, reading from the key file if the tunnel is not running.Methods in net.i2p.i2ptunnel.ui with parameters of type DestinationModifier and TypeMethodDescriptionvoidTunnelConfig.setDestination(Destination dest) This is easier than requiring TunnelConfig to talk to TunnelControllerGroup and TunnelController.Uses of Destination in net.i2p.i2ptunnel.web
Methods in net.i2p.i2ptunnel.web that return DestinationModifier and TypeMethodDescriptionprotected DestinationIndexBean.getAltDestination(int tunnel) Works even if tunnel is not running.protected DestinationIndexBean.getDestination(int tunnel) Works even if tunnel is not running.Uses of Destination in net.i2p.router
Fields in net.i2p.router declared as DestinationModifier and TypeFieldDescriptionprivate final DestinationClientMessage._destinationThe client this message is for.private final DestinationClientMessage._fromDestinationThe client it came from, for received messages.Methods in net.i2p.router that return DestinationModifier and TypeMethodDescriptionClientMessage.getDestination()Retrieve the destination to which this message is directed.ClientMessage.getFromDestination()Valid for outbound; null for inbound.abstract DestinationNetworkDatabaseFacade.lookupDestinationLocally(Hash key) Lookup locally in netDB and in badDest cache Succeeds even if LS validation failed due to unsupported sig type.Methods in net.i2p.router that return types with arguments of type DestinationModifier and TypeMethodDescriptionClientManagerFacade.listClients()Return the list of locally connected clients.Methods in net.i2p.router with parameters of type DestinationModifier and TypeMethodDescriptionbooleanTunnelManagerFacade.addAlias(Destination dest, ClientTunnelSettings settings, Destination existingClient) Add another destination to the same tunnels.voidTunnelManagerFacade.buildTunnels(Destination client, ClientTunnelSettings settings) The client connected (or updated their settings), so make sure we have the tunnels for them, and whenever necessary, ask them to authorize leases.abstract SessionConfigClientManagerFacade.getClientSessionConfig(Destination dest) Return the client's current config, or null if not connected.KeyManager.getKeys(Destination dest) The keys registered for a destination.abstract booleanClientManagerFacade.isLocal(Destination dest) Determine if the destination specified is managed locally.abstract voidClientManagerFacade.messageDeliveryStatusUpdate(Destination fromDest, MessageId id, long messageNonce, int status) Update the delivery status of a message.voidKeyManager.registerKeys(Destination dest, SigningPrivateKey leaseRevocationPrivateKey, List<PrivateKey> endpointDecryptionKeys) Client with multiple keys.voidKeyManager.registerKeys(Destination dest, SigningPrivateKey leaseRevocationPrivateKey, PrivateKey endpointDecryptionKey) Client with a single key.voidClientManagerFacade.registerMetaDest(Destination dest) Declare that we're going to publish a meta LS for this destination.voidTunnelManagerFacade.removeAlias(Destination dest) Remove another destination to the same tunnels.voidTunnelManagerFacade.removeTunnels(Destination client) Must be called AFTER deregistration by the client manager.abstract voidClientManagerFacade.reportAbuse(Destination dest, String reason, int severity) Instruct the client (or all clients) that they are under attack.abstract voidClientManagerFacade.requestLeaseSet(Destination dest, LeaseSet set, long timeout, Job onCreateJob, Job onFailedJob) Request that a particular client authorize the Leases contained in the LeaseSet, after which the onCreateJob is queued up.KeyManager.unregisterKeys(Destination dest) Unregister keys for a destination, removing them from memory.voidClientManagerFacade.unregisterMetaDest(Destination dest) Declare that we're no longer going to publish a meta LS for this destination.Constructors in net.i2p.router with parameters of type DestinationModifierConstructorDescriptionClientMessage(Destination toDest, Payload payload, SessionConfig config, Destination fromDest, MessageId msgID, long messageNonce, long expiration, int flags) For outbound (locally originated).LeaseSetKeys(Destination dest, SigningPrivateKey revocationKey, List<PrivateKey> decryptionKeys) Client with multiple keysLeaseSetKeys(Destination dest, SigningPrivateKey revocationKey, PrivateKey decryptionKey) Client with a single key.Uses of Destination in net.i2p.router.client
Fields in net.i2p.router.client declared as DestinationModifier and TypeFieldDescriptionprivate final DestinationReportAbuseJob._destDestination being reported for abuse.private final DestinationClientManager.DistributeLocal._fromDestThe destination the message came from.private final DestinationClientManager.DistributeLocal._toDestThe destination the message goes to.private final DestinationMessageReceivedJob._toDestThe destination the message is addressed to.(package private) final DestinationClientConnectionRunner.SessionParams.destThe session's destination.Fields in net.i2p.router.client with type parameters of type DestinationModifier and TypeFieldDescriptionprivate final Set<Destination> ClientManager._metaDestsDestinations of the metadata sessions.private final Map<Destination, ClientConnectionRunner> ClientManager._runnersThe runners, by destination.Methods in net.i2p.router.client that return DestinationModifier and TypeMethodDescriptionClientConnectionRunner.getDestination(SessionId id) Return the dest for the given ID.Methods in net.i2p.router.client that return types with arguments of type DestinationModifier and TypeMethodDescription(package private) List<Destination> ClientConnectionRunner.getDestinations()Subsession aware.(package private) Set<Destination> ClientManager.getRunnerDestinations()Get the set of all runner destinations.ClientManager.listClients()Unsynchronized.ClientManagerFacadeImpl.listClients()Return the list of locally connected clients.Methods in net.i2p.router.client with parameters of type DestinationModifier and TypeMethodDescriptionintClientManager.destinationEstablished(ClientConnectionRunner runner, Destination dest) Add to the clients list.(package private) voidClientManager.distributeMessage(ClientConnectionRunner sender, Destination fromDest, Destination toDest, Payload payload, MessageId msgId, long messageNonce, long expiration, int flags) Distribute message to a local or remote destination.ClientManager.getClientSessionConfig(Destination dest) Return the client's current config, or null if not connected.ClientManagerFacadeImpl.getClientSessionConfig(Destination dest) Return the client's current config, or null if not connected.(package private) ClientConnectionRunnerClientManager.getRunner(Destination dest) Looks up a client's runner without holding the lock.booleanClientManager.isLocal(Destination dest) Unsynchronized.booleanClientManagerFacadeImpl.isLocal(Destination dest) Determine if the destination specified is managed locally.voidClientManager.messageDeliveryStatusUpdate(Destination fromDest, MessageId id, long messageNonce, int status) Update the message delivery status for a client.voidClientManagerFacadeImpl.messageDeliveryStatusUpdate(Destination fromDest, MessageId id, long messageNonce, int status) Report whether a client message was delivered or lost.(package private) booleanClientConnectionRunner.receiveMessage(Destination toDest, Destination fromDest, Payload payload) Synchronously deliver the message to the current runner(package private) booleanClientConnectionRunner.receiveMessage(Hash toHash, Destination fromDest, Payload payload) Synchronously deliver the message to the current runnervoidClientManager.registerMetaDest(Destination dest) Declare that we're going to publish a meta LS for this destination.voidClientManagerFacadeImpl.registerMetaDest(Destination dest) Declare that we're going to publish a meta LS for this destination.voidClientConnectionRunner.reportAbuse(Destination dest, String reason, int severity) Send async abuse message to the client.voidClientManager.reportAbuse(Destination dest, String reason, int severity) Reports abuse on one destination, or on every local destination.voidClientManagerFacadeImpl.reportAbuse(Destination dest, String reason, int severity) Instruct the client (or all clients) that they are under attack.voidClientManager.requestLeaseSet(Destination dest, LeaseSet set, long timeout, Job onCreateJob, Job onFailedJob) Request that a particular client authorize the Leases contained in the LeaseSet, after which the onCreateJob is queued up.voidClientManagerFacadeImpl.requestLeaseSet(Destination dest, LeaseSet set, long timeout, Job onCreateJob, Job onFailedJob) Request that a particular client authorize the Leases contained in the LeaseSet, after which the onCreateJob is queued up.(package private) booleanClientConnectionRunner.rerequestAfterTransientPublishFailure(Destination dest) Re-queue the pending lease request after netdb publish() rejected the client's LeaseSet as expired (client clock skew or slow signing).private voidLookupDestJob.returnDest(Destination d) Sends the destination found to the client.voidClientManager.unregisterMetaDest(Destination dest) Declare that we're no longer going to publish a meta LS for this destination.voidClientManagerFacadeImpl.unregisterMetaDest(Destination dest) Declare that we're no longer going to publish a meta LS for this destination.voidClientManager.unregisterSession(SessionId id, Destination dest) Remove only the following session.(package private) voidClientConnectionRunner.updateMessageDeliveryStatus(Destination dest, MessageId id, long messageNonce, int status) Send a notification to the client that their message (id specified) was delivered (or failed delivery) Note that this sends the Guaranteed status codes, even though we only support best effort.Constructors in net.i2p.router.client with parameters of type DestinationModifierConstructorDescriptionDistributeLocal(RouterContext ctx, Destination toDest, ClientConnectionRunner to, ClientConnectionRunner from, Destination fromDest, Payload payload, MessageId id, long messageNonce) Distribute a message from one client connection directly to another.MessageReceivedJob(RouterContext ctx, ClientConnectionRunner runner, Destination toDest, Destination fromDest, Payload payload, boolean sendDirect) Create a job that delivers one received message to a client.ReportAbuseJob(RouterContext context, ClientConnectionRunner runner, Destination dest, String reason, int severity) Create abuse report.(package private)SessionParams(Destination d, boolean isPrimary) Holds one client session's state.Uses of Destination in net.i2p.router.crypto.ratchet
Fields in net.i2p.router.crypto.ratchet declared as DestinationModifier and TypeFieldDescriptionprivate final DestinationRatchetSKM._destinationThe destination these sessions serve.private DestinationRatchetSKM.OutboundSession._destinationThe local destination owning the session.private final DestinationACKTimer._fromThe peer we sent the message to.private final DestinationACKTimer._toThe peer we received the message from.Methods in net.i2p.router.crypto.ratchet that return DestinationModifier and TypeMethodDescriptionRatchetSKM.getDestination()The local destination for this SKM.(package private) DestinationRatchetSKM.getDestination(PublicKey target) The far-end destination for a public key.RatchetSKM.OutboundSession.getDestination()Destination for the current session's far end.Methods in net.i2p.router.crypto.ratchet with parameters of type DestinationModifier and TypeMethodDescription(package private) booleanRatchetSKM.createSession(PublicKey target, Destination d, HandshakeState state, ReplyCallback callback) Inbound or outbound.byte[]ECIESAEADEngine.encrypt(CloveSet cloves, PublicKey target, Destination to, PrivateKey priv, RatchetSKM keyManager, ReplyCallback callback) Encrypt the data to the target using the given key and deliver the specified tags No new session key This is the one called from GarlicMessageBuilder and is the primary entry point.private byte[]ECIESAEADEngine.encryptNewSession(CloveSet cloves, PublicKey target, Destination to, PrivateKey priv, RatchetSKM keyManager, ReplyCallback callback) Scenario 1: New Session MessagebooleanRatchetSKM.OutboundSession.registerTimer(Destination d, SimpleTimer2.TimedEvent timer) A timer that we will cancel when we send something.(package private) booleanRatchetSKM.registerTimer(PublicKey target, Destination d, SimpleTimer2.TimedEvent timer) Side effect - binds this session to the supplied destination.private byte[]ECIESAEADEngine.x_encrypt(CloveSet cloves, PublicKey target, Destination to, PrivateKey priv, RatchetSKM keyManager, ReplyCallback callback) Encrypt the cloves to the target, selecting New Session, New Session Reply, or Existing Session encryption as appropriate.Constructors in net.i2p.router.crypto.ratchet with parameters of type DestinationModifierConstructorDescriptionACKTimer(RouterContext context, Destination from, Destination to) ACK timer for ratchet.OutboundSession(PublicKey target, Destination d, SessionKey key, HandshakeState state, ReplyCallback callback) Outbound session for the given target.RatchetSKM(RouterContext context, Destination dest) ECIES only.RatchetSKM(RouterContext context, Destination dest, EncType type) The session key manager is constructed and accessed through the client manager.Uses of Destination in net.i2p.router.dummy
Methods in net.i2p.router.dummy that return DestinationModifier and TypeMethodDescriptionDummyNetworkDatabaseFacade.lookupDestinationLocally(Hash key) Look up a destination in the in-memory store.Methods in net.i2p.router.dummy with parameters of type DestinationModifier and TypeMethodDescriptionbooleanDummyTunnelManagerFacade.addAlias(Destination dest, ClientTunnelSettings settings, Destination existingClient) voidDummyTunnelManagerFacade.buildTunnels(Destination client, ClientTunnelSettings settings) DummyClientManagerFacade.getClientSessionConfig(Destination _dest) booleanDummyClientManagerFacade.isLocal(Destination dest) voidDummyClientManagerFacade.messageDeliveryStatusUpdate(Destination fromDest, MessageId id, long msgNonce, int status) voidDummyTunnelManagerFacade.removeAlias(Destination dest) voidDummyTunnelManagerFacade.removeTunnels(Destination client) voidDummyClientManagerFacade.reportAbuse(Destination dest, String reason, int severity) voidDummyClientManagerFacade.requestLeaseSet(Destination dest, LeaseSet set, long timeout, Job onCreateJob, Job onFailedJob) Uses of Destination in net.i2p.router.message
Fields in net.i2p.router.message declared as DestinationModifier and TypeFieldDescriptionprivate final DestinationOutboundClientMessageOneShotJob._fromThe sending client's destination.private final DestinationOutboundClientMessageOneShotJob._toThe target destination.Methods in net.i2p.router.message with parameters of type DestinationModifier and TypeMethodDescription(package private) static GarlicMessageGarlicMessageBuilder.buildECIESMessage(RouterContext ctx, GarlicConfig config, Hash from, Destination to, SessionKeyManager skm, ReplyCallback callback) ECIES_X25519 and PQ only.private static GarlicConfigOutboundClientMessageJobHelper.createGarlicConfig(RouterContext ctx, long replyToken, long expiration, PublicKey recipientPK, PayloadGarlicConfig dataClove, Hash from, Destination dest, TunnelInfo replyTunnel, boolean requireAck, LeaseSet bundledReplyLeaseSet, SessionKeyManager skm) Make the top-level config, with a data clove, an optional ack clove, and an optional leaseset clove.(package private) static GarlicMessageOutboundClientMessageJobHelper.createGarlicMessage(RouterContext ctx, long replyToken, long expiration, PublicKey recipientPK, PayloadGarlicConfig dataClove, Hash from, Destination dest, TunnelInfo replyTunnel, int tagsToSendOverride, int lowTagsOverride, SessionKey wrappedKey, Set<SessionTag> wrappedTags, boolean requireAck, LeaseSet bundledReplyLeaseSet, ReplyCallback callback) Build a garlic message that will be delivered to the router on which the target is located.private booleanOutboundClientMessageOneShotJob.isLocallyHostedDestination(Destination to) Whether this router hosts the given destination.private TunnelInfoOutboundClientMessageOneShotJob.selectOutboundTunnel(Destination _to) Choose our outbound tunnel to send the message through.Uses of Destination in net.i2p.router.naming
Fields in net.i2p.router.naming declared as DestinationFields in net.i2p.router.naming with type parameters of type DestinationModifier and TypeFieldDescriptionBlockfileNamingService.DestEntry.destListMay be null - v4 only - same size as propsList Only non-null if more than one dest.Methods in net.i2p.router.naming that return DestinationModifier and TypeMethodDescriptionBlockfileNamingService.lookup(String hostname, Properties lookupOptions, Properties storedOptions) Lookup a hostname.private DestinationBlockfileNamingService.lookup2(String hostname, Properties lookupOptions, Properties storedOptions) Single dest version lookup.Methods in net.i2p.router.naming that return types with arguments of type DestinationModifier and TypeMethodDescriptionBlockfileNamingService.getEntries(Properties options) All entries as destination objects.BlockfileNamingService.lookupAll(String hostname, Properties lookupOptions, List<Properties> storedOptions) Return all of the entries found in the first list found, or in the list specified in lookupOptions.private List<Destination> BlockfileNamingService.lookupAll2(String hostname, Properties lookupOptions, List<Properties> storedOptions) Multiple dests version lookup.Methods in net.i2p.router.naming with parameters of type DestinationModifier and TypeMethodDescriptionbooleanBlockfileNamingService.addDestination(String hostname, Destination d, Properties options) Add a Destination to an existing hostname's entry in the addressbook.private voidBlockfileNamingService.addEntry(BlockFile bf, String listname, String key, Destination dest, String source) Caller must synchronize.private static voidBlockfileNamingService.addEntry(SkipList<String, BlockfileNamingService.DestEntry> sl, String key, Destination dest, Properties props) Single dest version.private voidBlockfileNamingService.addReverseEntry(String key, Destination dest) Caller must synchronize.private static voidBlockfileNamingService.addReverseEntry(BlockFile bf, String key, Destination dest, Log log) Caller must synchronize.private static IntegerBlockfileNamingService.getReverseKey(Destination dest) Reverse lookup key for the destination.booleanBlockfileNamingService.put(String hostname, Destination d, Properties options) Store a destination, replacing any previous entry for the name.private booleanBlockfileNamingService.put(String hostname, Destination d, Properties options, boolean checkExisting) Single dest version This does not prevent adding b32.booleanBlockfileNamingService.putIfAbsent(String hostname, Destination d, Properties options) Store a destination only if the name is unused.booleanBlockfileNamingService.remove(String hostname, Destination d, Properties options) Remove a hostname's entry only if it contains the Destination d.private voidBlockfileNamingService.removeReverseEntry(String key, Destination dest) Caller must synchronize.BlockfileNamingService.reverseLookup(Destination d, Properties options) Look up a hostname from a Destination's hash.BlockfileNamingService.reverseLookupAll(Destination d, Properties options) Return all hostnames registered for this Destination's hash.Method parameters in net.i2p.router.naming with type arguments of type DestinationModifier and TypeMethodDescriptionprivate static voidBlockfileNamingService.addEntry(SkipList<String, BlockfileNamingService.DestEntry> sl, String key, List<Destination> dests, List<Properties> propsList) Multiple dests version.private booleanBlockfileNamingService.put(String hostname, List<Destination> dests, List<Properties> propsList, boolean checkExisting) Multiple dests version.Uses of Destination in net.i2p.router.networkdb.kademlia
Fields in net.i2p.router.networkdb.kademlia with type parameters of type DestinationModifier and TypeFieldDescriptionprivate final Map<Hash, Destination> NegativeLookupCache.badDestsThe destinations known to be bad.Methods in net.i2p.router.networkdb.kademlia that return DestinationModifier and TypeMethodDescriptionNegativeLookupCache.getBadDest(Hash h) Cached bad destination for the given hash.KademliaNetworkDatabaseFacade.lookupDestinationLocally(Hash key) Destination stored locally, or null.Methods in net.i2p.router.networkdb.kademlia with parameters of type DestinationModifier and TypeMethodDescription(package private) voidKademliaNetworkDatabaseFacade.failPermanently(Destination dest) Negative cache until restart.voidNegativeLookupCache.failPermanently(Destination dest) Negative cache the hash permanently until restart, but cache the destination.BlindCache.getBlindedHash(Destination dest) The hash to lookup for a dest.BlindCache.getData(Destination dest) The cached data or null.BlindCache.getHash(Destination dest) The hash to lookup for a dest.ExpireLeasesJob.getTunnelName(Destination d) Tunnel nickname for the given destination, if it has inbound tunnels.FloodfillNetworkDatabaseFacade.getTunnelName(Destination d) Look up the tunnel pool nickname for a destination.RepublishLeaseSetJob.getTunnelName(Destination d) Look up the tunnel nickname for a destination.voidBlindCache.setBlinded(Destination dest) Add the destination to the cache entry.voidBlindCache.setBlinded(Destination dest, SigType blindedType, String secret) Mark a destination as known to be blinded.Uses of Destination in net.i2p.router.tunnel.pool
Methods in net.i2p.router.tunnel.pool with parameters of type DestinationModifier and TypeMethodDescriptionbooleanTunnelPoolManager.addAlias(Destination dest, ClientTunnelSettings settings, Destination existingClient) Add another destination to the same tunnels.voidTunnelPoolManager.buildTunnels(Destination client, ClientTunnelSettings settings) Used only at session startup.voidTunnelPoolManager.removeAlias(Destination dest) Remove a destination for the same tunnels as another.voidTunnelPoolManager.removeTunnels(Destination dest) Must be called AFTER deregistration by the client manager.Uses of Destination in net.i2p.router.web.helpers
Classes in net.i2p.router.web.helpers that implement interfaces with type arguments of type DestinationModifier and TypeClassDescriptionprivate classCompare translated nicknames - put "shared clients" first in the sort Inner class, can't be Serializable.Methods in net.i2p.router.web.helpers with parameters of type DestinationModifier and TypeMethodDescriptionprivate static StringClientSKMDebugHelper.clientTitle(RouterContext ctx, Destination dest, Hash h) The client's nickname when its inbound tunnel has one, otherwise the base32 destination.intSidebarHelper.AlphaComparator.compare(Destination lhs, Destination rhs) Orders two clients by type (HostChecker, chat, snark, server, client, ping), falling back to a locale-aware name collation.private StringSidebarHelper.getTunnelName(Destination d) Look up the translated display name for a client destination, checking SessionConfig first then TunnelPoolSettings.Uses of Destination in net.i2p.sam
Fields in net.i2p.sam declared as DestinationModifier and TypeFieldDescriptionprivate final DestinationSAMv2StreamSession.StreamConnector.destThe destination the session connects to.private final DestinationSAMv3StreamSession.ConnectTask.destThe destination to connect to.Methods in net.i2p.sam that return DestinationModifier and TypeMethodDescriptionstatic DestinationResolve the destination from a key or a hostname.SAMMessageSess.getDestination()Get the SAM message-based session Destination.SAMMessageSession.getDestination()Get the SAM message-based session Destination.SAMStreamSession.getDestination()Get the SAM STREAM session Destination.SAMMessageSess.lookupDest(String name) Lookup a destination through the I2CP session.SAMMessageSession.lookupDest(String name) Lookup a destination through the I2CP session.(package private) static DestinationSAMMessageSession.lookupDest(I2PSession session, String name) Lookup a destination through the I2CP session.SAMStreamSession.lookupDest(String name) Lookup a destination through the I2CP session.private static DestinationSAMUtils.lookupHost(String name) Resolved the specified hostname.Methods in net.i2p.sam with parameters of type DestinationModifier and TypeMethodDescriptionvoidSAMStreamReceiver.notifyStreamIncomingConnection(int id, Destination dest) Notify about a new incoming connection.voidSAMv1Handler.notifyStreamIncomingConnection(int id, Destination d) Notify the SAM client of an incoming stream connection.static voidSAMv3Handler.notifyStreamIncomingConnection(SocketChannel client, Destination d) Notify the SAM client of an incoming stream connection on a static channel.static voidSAMv3Handler.notifyStreamIncomingConnection(SocketChannel client, Destination d, int fromPort, int toPort) Notify the SAM client of an incoming stream connection with port information.voidSAMv3Handler.notifyStreamIncomingConnection(Destination d, int fromPort, int toPort) Tells the SAM client a new stream connection arrived, naming the ports when requested.voidMasterSession.receiveDatagramBytes(Destination sender, byte[] data, int proto, int fromPort, int toPort) ThrowsIOException— the master session does not handle datagram data directly; use a DATAGRAM subsession instead.voidSAMDatagramReceiver.receiveDatagramBytes(Destination sender, byte[] data, int proto, int fromPort, int toPort) Send a byte array to a SAM client.voidSAMv1Handler.receiveDatagramBytes(Destination sender, byte[] data, int proto, int fromPort, int toPort) Receive datagram bytes from the network and forward them to the SAM client.voidSAMv3DatagramSession.receiveDatagramBytes(Destination sender, byte[] data, int proto, int fromPort, int toPort) Receive a datagram from I2P and forward to the SAM client.Constructors in net.i2p.sam with parameters of type DestinationModifierConstructorDescription(package private)ConnectTask(SAMv3Handler handler, Destination dest, I2PSocketOptions opts, boolean verbose, String nick) Builds the connect task.StreamConnector(int id, Destination dest, I2PSocketOptions opts) Create a new SAM STREAM session socket reader.Uses of Destination in org.klomp.snark
Fields in org.klomp.snark declared as DestinationModifier and TypeFieldDescriptionprivate DestinationPeerID.addressThe peer's I2P destination.private DestinationUDPTrackerClient.Tracker.destDestination used for the connection to this tracker.Methods in org.klomp.snark that return DestinationModifier and TypeMethodDescriptionPeerID.getAddress()The destination.UDPTrackerClient.Tracker.getDest(boolean fast) The destination, or null.(package private) DestinationI2PSnarkUtil.getDestination(String ip) Base64 Hash or Hash.i2p or name.i2p using naming service.Peer.getDestination()Returns the I2P destination of the connected peer.(package private) static DestinationI2PSnarkUtil.getDestinationFromBase64(String ip) Resolves a base64-encoded destination string.private DestinationConnectionAcceptor.getMyDestination()The destination of this acceptor.(package private) DestinationI2PSnarkUtil.getMyDestination()The shared destination.(package private) DestinationI2PSnarkUtil.getMyDestination(byte[] ih) The destination for the torrent, or the shared destination when multi-dest is disabled or the torrent has no destination.TorrentDest.getMyDestination()This router's own destination.Methods in org.klomp.snark with parameters of type DestinationModifier and TypeMethodDescriptionprivate I2PSocketI2PSnarkUtil.connect(PeerID peer, I2PSocketManager mgr, Destination myDest) Connect to the given destination via the given socket manager.private voidConnectionAcceptor.handleSocket(I2PSocket socket, Destination myDest, PeerAcceptor pa) Validate an accepted socket and dispatch it to a handler thread.private voidUDPTrackerClient.receiveMessage(Destination from, int fromPort, byte[] payload) Receive a message.private booleanUDPTrackerClient.sendMessage(Destination dest, int toPort, byte[] payload, boolean repliable) Lowest-level send message call.Constructors in org.klomp.snark with parameters of type DestinationModifierConstructorDescriptionPeerID(byte[] id, Destination address) Creates a PeerID from a peer ID byte array and destination address.Uses of Destination in org.klomp.snark.dht
Fields in org.klomp.snark.dht declared as DestinationModifier and TypeFieldDescriptionprivate DestinationNodeInfo.destThe node's destination, resolved when needed.Methods in org.klomp.snark.dht that return DestinationModifier and TypeMethodDescriptionNodeInfo.getDestination()The destination, may be null if we don't have it.Methods in org.klomp.snark.dht with parameters of type DestinationModifier and TypeMethodDescriptionvoidDHT.ping(Destination dest, int port) Ping.voidKRPC.ping(Destination dest, int port) Ping.private voidKRPC.receiveMessage(Destination from, int fromPort, byte[] payload) Handle an incoming datagram.private voidKRPC.receiveQuery(MsgID msgID, Destination dest, int fromPort, String method, Map<String, BEValue> args) Handle and respond to an incoming query.static booleanDatagramSender.send(I2PSession session, SendMessageOptions opts, Destination dest, byte[] payload, int fromPort, int toPort, boolean repliable) Send a pre-wrapped datagram payload through the session.private booleanKRPC.sendMessage(Destination dest, int toPort, Map<String, Object> map, boolean repliable) Lowest-level send message call.voidNodeInfo.setDestination(Destination dest) This can come in later but the hash must match.Constructors in org.klomp.snark.dht with parameters of type DestinationModifierConstructorDescriptionNodeInfo(Destination dest, int port) With a fake NID used for pings.NodeInfo(NID nID, Destination dest, int port) Use this if we have the full destination.