Package net.i2p.i2ptunnel.streamr
Class StreamrConsumer
java.lang.Object
net.i2p.util.EventDispatcherImpl
net.i2p.i2ptunnel.I2PTunnelTask
net.i2p.i2ptunnel.udpTunnel.I2PTunnelUDPClientBase
net.i2p.i2ptunnel.streamr.StreamrConsumer
- All Implemented Interfaces:
- Sink,- Source,- EventDispatcher
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)
- Author:
- welterde, zzz modded for I2PTunnel
- 
Field SummaryFields inherited from class net.i2p.i2ptunnel.udpTunnel.I2PTunnelUDPClientBase_clientId, _context, lFields inherited from class net.i2p.i2ptunnel.I2PTunnelTaskopen
- 
Constructor SummaryConstructorsConstructorDescriptionStreamrConsumer(InetAddress host, int port, String destination, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanclose(boolean forced) I2PTunnelTask Methods Classes should override to close UDP side as wellfinal voidActually start working on outgoing connections.Methods inherited from class net.i2p.i2ptunnel.udpTunnel.I2PTunnelUDPClientBasesend, setSink, startMethods inherited from class net.i2p.i2ptunnel.I2PTunnelTaskconnected, destroy, disconnected, errorOccurred, getId, getTunnel, isOpen, optionsUpdated, reportAbuse, routerDisconnected, setId, setName, setTunnel, toStringMethods inherited from class net.i2p.util.EventDispatcherImplattachEventDispatcher, detachEventDispatcher, getEventDispatcher, getEvents, getEventValue, ignoreEvents, notifyEvent, unIgnoreEvents, waitEventValue
- 
Constructor Details- 
StreamrConsumerpublic StreamrConsumer(InetAddress host, int port, String destination, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) 
 
- 
- 
Method Details- 
startRunningpublic final void startRunning()Description copied from class:I2PTunnelUDPClientBaseActually start working on outgoing connections. Classes should override to start UDP side as well. Not specified in I2PTunnelTask but used in both I2PTunnelClientBase and I2PTunnelServer so let's implement it here too.- Overrides:
- startRunningin class- I2PTunnelUDPClientBase
 
- 
closepublic boolean close(boolean forced) Description copied from class:I2PTunnelUDPClientBaseI2PTunnelTask Methods Classes should override to close UDP side as well- Overrides:
- closein class- I2PTunnelUDPClientBase
- Returns:
- success
 
 
-