Packages that use EventDispatcher
Package
Description
Implementation of preconfigured tunnels for clients and servers, including special-purpose tunnels for IRC, SOCKS, HTTP and streaming.
IRC tunnel support: DCC and CTCP handling for IRC clients using a client tunnel.
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.
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. General utility classes shared across the core libraries and the router.
Uses of EventDispatcher in net.i2p.i2ptunnel
Classes in net.i2p.i2ptunnel that implement EventDispatcherModifier and TypeClassDescriptionclassI2P ping utility for CLI use.classManages I2PTunnelTasks and I2PSessions.classStandard I2P client tunnel that forwards local TCP connections to I2P destinations.classAbstract base class for I2P client tunnels with common functionality.classSSL tunnel through HTTP proxy using CONNECT method.classHTTP proxy reusing server's I2PSocketManager without outproxy capability.classBidirectional HTTP server tunnel combining server and client functionality.classHTTP proxy that tunnels requests through I2P.classCommon things for HTTPClient and ConnectClient Retrofit over them in 0.8.2.classHTTP server tunnel that filters headers and provides compression.classIRC client tunnel with DCC support and filtering.classIRC server tunnel that filters registration to pass client destination hash as hostname.classBase I2P tunnel server for handling incoming connections.classBase class for I2P tunnel servers and clients.Constructors in net.i2p.i2ptunnel with parameters of type EventDispatcherModifierConstructorDescriptionI2Ping(Logging l, boolean ownDest, EventDispatcher notifyThis, I2PTunnel tunnel) Construct a ping tunnel client over an existing command.I2PTunnelClient(int localPort, String destinations, Logging l, boolean ownDest, EventDispatcher notifyThis, I2PTunnel tunnel, String pkf) Create a standard client tunnel listening on localPort, forwarding to the given destinations.I2PTunnelClientBase(int localPort, boolean ownDest, Logging l, EventDispatcher notifyThis, String handlerName, I2PTunnel tunnel) The main constructor.I2PTunnelClientBase(int localPort, boolean ownDest, Logging l, EventDispatcher notifyThis, String handlerName, I2PTunnel tunnel, String pkf) Use this to build a client with a persistent private key.I2PTunnelClientBase(int localPort, Logging l, I2PSocketManager sktMgr, I2PTunnel tunnel, EventDispatcher notifyThis, long clientId) This constructor is used to add a client to an existing socket manager.I2PTunnelConnectClient(int localPort, Logging l, boolean ownDest, String wwwProxy, EventDispatcher notifyThis, I2PTunnel tunnel) Create an HTTPS proxy tunnel for connecting out to arbitrary destinations, with optional outproxy chaining.I2PTunnelHTTPBidirProxy(int localPort, Logging l, I2PSocketManager sockMgr, I2PTunnel tunnel, EventDispatcher notifyThis, long clientId) Create a bidirectional HTTP proxy tunnel on localPort, reusing the server's existing I2P socket manager.I2PTunnelHTTPBidirServer(InetAddress host, int port, int proxyport, File privkey, String privkeyname, String spoofHost, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Creates a bidirectional HTTP server tunnel with a private key file.I2PTunnelHTTPBidirServer(InetAddress host, int port, int proxyport, InputStream privData, String privkeyname, String spoofHost, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Creates a bidirectional HTTP server tunnel with an input stream for the private key.I2PTunnelHTTPBidirServer(InetAddress host, int port, int proxyport, String privData, String spoofHost, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Creates a bidirectional HTTP server tunnel.I2PTunnelHTTPClient(int localPort, Logging l, boolean ownDest, String wwwProxy, EventDispatcher notifyThis, I2PTunnel tunnel) Create an HTTP proxy client on the given local port.I2PTunnelHTTPClient(int localPort, Logging l, I2PSocketManager sockMgr, I2PTunnel tunnel, EventDispatcher notifyThis, long clientId) This constructor always starts the tunnel (ignoring thei2cp.delayOpenoption).I2PTunnelHTTPClientBase(int localPort, boolean ownDest, Logging l, EventDispatcher notifyThis, String handlerName, I2PTunnel tunnel) Create a new HTTP client tunnel.I2PTunnelHTTPClientBase(int localPort, Logging l, I2PSocketManager sktMgr, I2PTunnel tunnel, EventDispatcher notifyThis, long clientId) This constructor always starts the tunnel (ignoring thei2cp.delayOpenoption).I2PTunnelHTTPServer(InetAddress host, int port, File privkey, String privkeyname, String spoofHost, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Create an HTTP tunnel server from a private key file.I2PTunnelHTTPServer(InetAddress host, int port, InputStream privData, String privkeyname, String spoofHost, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Create an HTTP tunnel server from a private key stream.I2PTunnelHTTPServer(InetAddress host, int port, String privData, String spoofHost, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Create an HTTP tunnel server with a private key string.I2PTunnelIRCClient(int localPort, String destinations, Logging l, boolean ownDest, EventDispatcher notifyThis, I2PTunnel tunnel, String pkf) Create an IRC client on the given local port.I2PTunnelIRCServer(InetAddress host, int port, File privkey, String privkeyname, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Construct an IRC client tunnel server.I2PTunnelServer(InetAddress host, int port, File privkey, String privkeyname, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Non-blocking: the key file is read and a disconnected socket manager built here; the session is only connected, and the server socket only opened, by startRunning().I2PTunnelServer(InetAddress host, int port, InputStream privData, String privkeyname, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Non-blocking: a disconnected socket manager is built from the already-open key stream here; the session is only connected, and the server socket only opened, by startRunning().I2PTunnelServer(InetAddress host, int port, String privData, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Non-blocking: the key is decoded and a disconnected socket manager is built here; the session is only connected, and the server socket only opened, by startRunning().I2PTunnelServer(InetAddress host, int port, I2PSocketManager sktMgr, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Non-blocking: wraps a socket manager the caller has already built and connected, and marks the server open, so the caller is responsible for the session rather than this constructor.protectedI2PTunnelTask(String name, EventDispatcher notifyThis, I2PTunnel tunnel) Create a task bound to a tunnel.Uses of EventDispatcher in net.i2p.i2ptunnel.irc
Classes in net.i2p.i2ptunnel.irc that implement EventDispatcherModifier and TypeClassDescriptionclassStart, track, and expire the I2PTunnelDCCClients.classAn implementation of the EventDispatcher interface for receiving events via in-line notifyEvent() only.classA standard client, using an existing socket manager.classA standard server that only answers for registered ports, and each port can only be used once.Methods in net.i2p.i2ptunnel.irc that return EventDispatcherMethods in net.i2p.i2ptunnel.irc with parameters of type EventDispatcherModifier and TypeMethodDescriptionvoidEventReceiver.attachEventDispatcher(EventDispatcher ev) Subscribe to IRC events.voidEventReceiver.detachEventDispatcher(EventDispatcher ev) Unsubscribe from IRC events.Constructors in net.i2p.i2ptunnel.irc with parameters of type EventDispatcherModifierConstructorDescriptionDCCClientManager(I2PSocketManager sktMgr, Logging logging, EventDispatcher dispatch, I2PTunnel tunnel) Create a new manager for DCC client tunnels.I2PTunnelDCCClient(String dest, int localPort, int remotePort, Logging l, I2PSocketManager sktMgr, EventDispatcher notifyThis, I2PTunnel tunnel, long clientId) Create an IRC DCC client tunnel, offering one outbound file transfer connection to dest:remotePort.I2PTunnelDCCServer(I2PSocketManager sktMgr, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) There's no support for unsolicited incoming I2P connections, so there's no server host or port parameters.Uses of EventDispatcher in net.i2p.i2ptunnel.socks
Classes in net.i2p.i2ptunnel.socks that implement EventDispatcherModifier and TypeClassDescriptionclassSOCKS tunnel specialized for IRC traffic with I2P filtering and security.classSOCKS proxy server that routes TCP connections through I2P network.classA Datagram Tunnel that can have multiple bidirectional ports on the UDP side.Constructors in net.i2p.i2ptunnel.socks with parameters of type EventDispatcherModifierConstructorDescriptionI2PSOCKSIRCTunnel(int localPort, Logging l, boolean ownDest, EventDispatcher notifyThis, I2PTunnel tunnel, String pkf) Construct a SOCKS IRC tunnel.I2PSOCKSTunnel(int localPort, Logging l, boolean ownDest, EventDispatcher notifyThis, I2PTunnel tunnel, String pkf) Create a SOCKS proxy on the given local port.Uses of EventDispatcher in net.i2p.i2ptunnel.streamr
Classes in net.i2p.i2ptunnel.streamr that implement EventDispatcherModifier and TypeClassDescriptionclassStreamr consumer that acts as an I2P client and UDP server, receiving data from I2P destinations and forwarding it to a configured UDP host/port.classStreamr producer that acts as an I2P server and UDP client, receiving UDP data on a configured port and forwarding it through I2P.Constructors in net.i2p.i2ptunnel.streamr with parameters of type EventDispatcherModifierConstructorDescriptionStreamrConsumer(InetAddress host, int port, String destination, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Creates a Streamr consumer that receives data from I2P and forwards it to a UDP destination.StreamrProducer(int port, File privkey, String privkeyname, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Creates a Streamr producer that receives UDP data and forwards it through I2P.Uses of EventDispatcher in net.i2p.i2ptunnel.udpTunnel
Classes in net.i2p.i2ptunnel.udpTunnel that implement EventDispatcherModifier and TypeClassDescriptionclassBase client class that sets up an I2P Datagram client destination.classBase client class that sets up an I2P Datagram server destination.Constructors in net.i2p.i2ptunnel.udpTunnel with parameters of type EventDispatcherModifierConstructorDescriptionI2PTunnelUDPClientBase(String destination, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Set up the I2P client, destination keypair, and I2CP session for this tunnel.I2PTunnelUDPServerBase(File privkey, String privkeyname, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Creates a UDP server tunnel using the private key in the given file.Uses of EventDispatcher in net.i2p.util
Classes in net.i2p.util that implement EventDispatcherModifier and TypeClassDescriptionclassAn implementation of the EventDispatcher interface.Methods in net.i2p.util that return EventDispatcherModifier and TypeMethodDescriptionEventDispatcher.getEventDispatcher()Object to be used to deliver events (usuallythis, but YMMV).EventDispatcherImpl.getEventDispatcher()Methods in net.i2p.util with parameters of type EventDispatcherModifier and TypeMethodDescriptionvoidEventDispatcher.attachEventDispatcher(EventDispatcher iev) Attach an EventDispatcher object to the events dispatching chain.voidEventDispatcherImpl.attachEventDispatcher(EventDispatcher ev) voidEventDispatcher.detachEventDispatcher(EventDispatcher iev) Detach the specified EventDispatcher object from the events dispatching chain.voidEventDispatcherImpl.detachEventDispatcher(EventDispatcher ev)