public class StreamrProducer extends I2PTunnelUDPServerBase
l, readTimeout, slockopen, tunnel| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
boolean | close(boolean forced)Stops the server and releases resources. |
void | startRunning()Starts the UDP server and begins forwarding data. |
getReadTimeout, send, setReadTimeout, setSink, startconnected, destroy, disconnected, errorOccurred, getBooleanOption, getId, getSocketManager, getTunnel, isOpen, optionsUpdated, reportAbuse, routerDisconnected, setId, setName, setTunnel, toStringattachEventDispatcher, detachEventDispatcher, getEventDispatcher, getEvents, getEventValue, ignoreEvents, notifyEvent, unIgnoreEvents, waitEventValuepublic StreamrProducer(int port,
File privkey,
String privkeyname,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel)port - local UDP port to listen onprivkey - I2P private key file for the destinationprivkeyname - name of the private keyl - logging facilitynotifyThis - event dispatcher for notificationstunnel - the tunnelpublic boolean close(boolean forced)
close in class I2PTunnelUDPServerBaseforced - if true, forces immediate closepublic final void startRunning()
startRunning in class I2PTunnelUDPServerBase