Uses of Interface
net.i2p.util.EventDispatcher
Package
Description
Implementation of preconfigured tunnels, both for clients and servers,
and a UI for adding more and editing the configuration.
Filters for the IRC client tunnel, and DCC handlers.
SOCKS 4, 4a, and 5 client tunnels.
Special-purpose client and server tunnels for streaming UDP clients and servers,
generally for audio and video streaming.
These classes define the several useful utilities used
throughout the router and applications.
-
Uses of EventDispatcher in net.i2p.i2ptunnel
Modifier and TypeClassDescriptionclass
Warning - not necessarily a stable API.class
An I2PTunnel tracks one or more I2PTunnelTasks and one or more I2PSessions.class
class
class
Supports the following:class
Reuse HTTP server's I2PSocketManager for a proxy with no outproxy capability.class
class
Act as a mini HTTP proxy, handling various different types of requests, forwarding them through I2P appropriately, and displaying the reply.class
Common things for HTTPClient and ConnectClient Retrofit over them in 0.8.2class
Simple extension to the I2PTunnelServer that filters the HTTP headers sent from the client to the server, replacing the Host header with whatever this instance has been configured with, and if the browser set Accept-Encoding: x-i2p-gzip, gzip the http message body and set Content-Encoding: x-i2p-gzip.class
Todo: Can we extend I2PTunnelClient instead and remove some duplicated code?class
Simple extension to the I2PTunnelServer that filters the registration sequence to pass the destination hash of the client through as the hostname, so an IRC Server may track users across nick changes.class
class
Either a Server or a Client.ModifierConstructorDescriptionI2Ping
(Logging l, boolean ownDest, EventDispatcher notifyThis, I2PTunnel tunnel) tunnel.getOptions must contain "command".I2PTunnelClient
(int localPort, String destinations, Logging l, boolean ownDest, EventDispatcher notifyThis, I2PTunnel tunnel, String pkf) As of 0.9.20 this is fast, and does NOT connect the manager to the router, or open the local socket.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) As of 0.9.20 this is fast, and does NOT connect the manager to the router, or open the local socket.I2PTunnelHTTPBidirProxy
(int localPort, Logging l, I2PSocketManager sockMgr, I2PTunnel tunnel, EventDispatcher notifyThis, long clientId) As of 0.9.20 this is fast, and does NOT connect the manager to the router, or open the local socket.I2PTunnelHTTPBidirServer
(InetAddress host, int port, int proxyport, File privkey, String privkeyname, String spoofHost, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) I2PTunnelHTTPBidirServer
(InetAddress host, int port, int proxyport, InputStream privData, String privkeyname, String spoofHost, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) I2PTunnelHTTPBidirServer
(InetAddress host, int port, int proxyport, String privData, String spoofHost, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) I2PTunnelHTTPClient
(int localPort, Logging l, boolean ownDest, String wwwProxy, EventDispatcher notifyThis, I2PTunnel tunnel) As of 0.9.20 this is fast, and does NOT connect the manager to the router, or open the local socket.I2PTunnelHTTPClient
(int localPort, Logging l, I2PSocketManager sockMgr, I2PTunnel tunnel, EventDispatcher notifyThis, long clientId) This constructor always starts the tunnel (ignoring the i2cp.delayOpen option).I2PTunnelHTTPClientBase
(int localPort, boolean ownDest, Logging l, EventDispatcher notifyThis, String handlerName, I2PTunnel tunnel) I2PTunnelHTTPClientBase
(int localPort, Logging l, I2PSocketManager sktMgr, I2PTunnel tunnel, EventDispatcher notifyThis, long clientId) This constructor always starts the tunnel (ignoring the i2cp.delayOpen option).I2PTunnelHTTPServer
(InetAddress host, int port, File privkey, String privkeyname, String spoofHost, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) I2PTunnelHTTPServer
(InetAddress host, int port, InputStream privData, String privkeyname, String spoofHost, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) I2PTunnelHTTPServer
(InetAddress host, int port, String privData, String spoofHost, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) I2PTunnelIRCClient
(int localPort, String destinations, Logging l, boolean ownDest, EventDispatcher notifyThis, I2PTunnel tunnel, String pkf) As of 0.9.20 this is fast, and does NOT connect the manager to the router, or open the local socket.I2PTunnelIRCServer
(InetAddress host, int port, File privkey, String privkeyname, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) I2PTunnelServer
(InetAddress host, int port, File privkey, String privkeyname, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Non-blockingI2PTunnelServer
(InetAddress host, int port, InputStream privData, String privkeyname, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Non-blockingI2PTunnelServer
(InetAddress host, int port, String privData, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Non-blockingI2PTunnelServer
(InetAddress host, int port, I2PSocketManager sktMgr, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Non-blockingprotected
I2PTunnelTask
(String name, EventDispatcher notifyThis, I2PTunnel tunnel) -
Uses of EventDispatcher in net.i2p.i2ptunnel.irc
Modifier and TypeClassDescriptionclass
Start, track, and expire the I2PTunnelDCCClients.class
An implementation of the EventDispatcher interface for receiving events via in-line notifyEvent() only.class
A standard client, using an existing socket manager.class
A standard server that only answers for registered ports, and each port can only be used once.Modifier and TypeMethodDescriptionvoid
EventReceiver.attachEventDispatcher
(EventDispatcher ev) void
EventReceiver.detachEventDispatcher
(EventDispatcher ev) ModifierConstructorDescriptionDCCClientManager
(I2PSocketManager sktMgr, Logging logging, EventDispatcher dispatch, I2PTunnel tunnel) I2PTunnelDCCClient
(String dest, int localPort, int remotePort, Logging l, I2PSocketManager sktMgr, EventDispatcher notifyThis, I2PTunnel tunnel, long clientId) As of 0.9.20 this is fast, and does NOT connect the manager to the router, or open the local socket.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
Modifier and TypeClassDescriptionclass
class
class
A Datagram Tunnel that can have multiple bidirectional ports on the UDP side.ModifierConstructorDescriptionI2PSOCKSIRCTunnel
(int localPort, Logging l, boolean ownDest, EventDispatcher notifyThis, I2PTunnel tunnel, String pkf) I2PSOCKSTunnel
(int localPort, Logging l, boolean ownDest, EventDispatcher notifyThis, I2PTunnel tunnel, String pkf) As of 0.9.20 this is fast, and does NOT connect the manager to the router, or open the local socket. -
Uses of EventDispatcher in net.i2p.i2ptunnel.streamr
Modifier and TypeClassDescriptionclass
Compared to a standard I2PTunnel, this acts like a client on the I2P side (no privkey file) but a server on the UDP side (sends to a configured host/port)class
Compared to a standard I2PTunnel, this acts like a server on the I2P side (persistent privkey file) but a client on the UDP side (receives on a configured port)ModifierConstructorDescriptionStreamrConsumer
(InetAddress host, int port, String destination, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) StreamrProducer
(int port, File privkey, String privkeyname, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) -
Uses of EventDispatcher in net.i2p.i2ptunnel.udpTunnel
Modifier and TypeClassDescriptionclass
Base client class that sets up an I2P Datagram client destination.class
Base client class that sets up an I2P Datagram server destination.ModifierConstructorDescriptionI2PTunnelUDPClientBase
(String destination, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) I2PTunnelUDPServerBase
(File privkey, String privkeyname, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) -
Uses of EventDispatcher in net.i2p.util
Modifier and TypeClassDescriptionclass
An implementation of the EventDispatcher interface.Modifier and TypeMethodDescriptionEventDispatcher.getEventDispatcher()
Get an object to be used to deliver events (usuallythis
, but YMMV).EventDispatcherImpl.getEventDispatcher()
Modifier and TypeMethodDescriptionvoid
EventDispatcher.attachEventDispatcher
(EventDispatcher iev) Attach an EventDispatcher object to the events dispatching chain.void
EventDispatcherImpl.attachEventDispatcher
(EventDispatcher ev) void
EventDispatcher.detachEventDispatcher
(EventDispatcher iev) Detach the specified EventDispatcher object from the events dispatching chain.void
EventDispatcherImpl.detachEventDispatcher
(EventDispatcher ev)