public class I2Ping extends I2PTunnelClientBase
Warning: Not stable API. Sample code for I2PTunnel CLI only. Not for external use.
| Modifier and Type | Field and Description |
|---|---|
static String | PROP_COMMANDConfig key for the ping command string. |
_clientId, _context, _executor, _log, _ownDest, DEFAULT_CONNECT_TIMEOUT, dest, l, listenerReady, mySockets, PROP_USE_SSL, sockLock, sockMgr, ssopen, tunnel| 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)clientConnectionRun. |
boolean | close(boolean forced)close. |
void | run()Overrides super. |
void | runCommand(String cmd) |
static String | usage() |
buildSocketManager, buildSocketManager, buildSocketManager, buildSocketManager, closeSocket, createI2PSocket, createI2PSocket, createI2PSocket, destroy, getDefaultOptions, getDefaultOptions, getListenHost, getLocalPort, getSocketManager, getSocketManager, getSocketManager, killSharedClient, manageConnection, optionsUpdated, startRunning, verifySocketManagerconnected, disconnected, errorOccurred, getBooleanOption, getId, getTunnel, isOpen, reportAbuse, routerDisconnected, setId, setName, setTunnel, toStringattachEventDispatcher, detachEventDispatcher, getEventDispatcher, getEvents, getEventValue, ignoreEvents, notifyEvent, unIgnoreEvents, waitEventValuepublic static final String PROP_COMMAND
public I2Ping(Logging l, boolean ownDest, EventDispatcher notifyThis, I2PTunnel tunnel)
IllegalArgumentException - if it doesn'tprotected void clientConnectionRun(Socket s)
clientConnectionRun in class I2PTunnelClientBases - the socket to managepublic boolean close(boolean forced)
close in class I2PTunnelClientBasepublic void run()
run in interface Runnablerun in class I2PTunnelClientBasepublic void runCommand(String cmd) throws InterruptedException, IOException
public static String usage()