public class I2Ping extends I2PTunnelClientBase
Modifier and Type | Field and Description |
---|---|
static String |
PROP_COMMAND |
_clientId, _context, _log, _ownDest, DEFAULT_CONNECT_TIMEOUT, dest, l, listenerReady, mySockets, sockLock, sockMgr, ss
open
Constructor and Description |
---|
I2Ping(Logging l,
boolean ownDest,
EventDispatcher notifyThis,
I2PTunnel tunnel)
tunnel.getOptions must contain "command".
|
Modifier and Type | Method and Description |
---|---|
protected void |
clientConnectionRun(Socket s)
Does nothing.
|
boolean |
close(boolean forced) |
void |
run()
Overrides super.
|
void |
runCommand(String cmd) |
static String |
usage()
With newlines except for last line
|
buildSocketManager, buildSocketManager, buildSocketManager, buildSocketManager, closeSocket, createI2PSocket, createI2PSocket, createI2PSocket, getClientExecutor, getDefaultOptions, getDefaultOptions, getListenHost, getLocalPort, getSocketManager, getSocketManager, getSocketManager, killClientExecutor, manageConnection, optionsUpdated, startRunning, verifySocketManager
connected, disconnected, errorOccurred, getId, getTunnel, isOpen, reportAbuse, routerDisconnected, setId, setName, setTunnel, toString
attachEventDispatcher, detachEventDispatcher, getEventDispatcher, getEvents, getEventValue, ignoreEvents, notifyEvent, unIgnoreEvents, waitEventValue
public static final String PROP_COMMAND
public I2Ping(Logging l, boolean ownDest, EventDispatcher notifyThis, I2PTunnel tunnel)
IllegalArgumentException
- if it doesn'tpublic void run()
run
in interface Runnable
run
in class I2PTunnelClientBase
public void runCommand(String cmd) throws InterruptedException, IOException
InterruptedException
IOException
public static String usage()
public boolean close(boolean forced)
close
in class I2PTunnelClientBase
protected void clientConnectionRun(Socket s)
clientConnectionRun
in class I2PTunnelClientBase