net.i2p.i2ptunnel
Class I2PTunnelIRCClient

java.lang.Object
  extended by net.i2p.util.EventDispatcherImpl
      extended by net.i2p.i2ptunnel.I2PTunnelTask
          extended by net.i2p.i2ptunnel.I2PTunnelClientBase
              extended by net.i2p.i2ptunnel.I2PTunnelIRCClient
All Implemented Interfaces:
Runnable, EventDispatcher

public class I2PTunnelIRCClient
extends I2PTunnelClientBase

Todo: Can we extend I2PTunnelClient instead and remove some duplicated code?


Field Summary
protected  List<Destination> dests
          list of Destination objects that we point at
static String PROP_DCC
           
protected  long readTimeout
           
 
Fields inherited from class net.i2p.i2ptunnel.I2PTunnelClientBase
_clientId, _context, _log, _ownDest, DEFAULT_CONNECT_TIMEOUT, dest, l, mySockets, sockLock, sockMgr, ss
 
Fields inherited from class net.i2p.i2ptunnel.I2PTunnelTask
open
 
Constructor Summary
I2PTunnelIRCClient(int localPort, String destinations, Logging l, boolean ownDest, EventDispatcher notifyThis, I2PTunnel tunnel, String pkf)
           
 
Method Summary
protected  void clientConnectionRun(Socket s)
          Manage a connection in a separate thread.
 boolean close(boolean forced)
           
 void startRunning()
          Actually start working on incoming connections.
 
Methods inherited from class net.i2p.i2ptunnel.I2PTunnelClientBase
buildSocketManager, buildSocketManager, buildSocketManager, buildSocketManager, closeSocket, createI2PSocket, createI2PSocket, getClientExecutor, getDefaultOptions, getDefaultOptions, getListenHost, getLocalPort, getSocketManager, getSocketManager, getSocketManager, killClientExecutor, manageConnection, optionsUpdated, run, verifySocketManager
 
Methods inherited from class net.i2p.i2ptunnel.I2PTunnelTask
connected, disconnected, errorOccurred, getId, getTunnel, isOpen, reportAbuse, routerDisconnected, setId, setName, setTunnel, toString
 
Methods inherited from class net.i2p.util.EventDispatcherImpl
attachEventDispatcher, detachEventDispatcher, getEventDispatcher, getEvents, getEventValue, ignoreEvents, notifyEvent, unIgnoreEvents, waitEventValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dests

protected List<Destination> dests
list of Destination objects that we point at


readTimeout

protected long readTimeout

PROP_DCC

public static final String PROP_DCC
Since:
0.8.9
See Also:
Constant Field Values
Constructor Detail

I2PTunnelIRCClient

public I2PTunnelIRCClient(int localPort,
                          String destinations,
                          Logging l,
                          boolean ownDest,
                          EventDispatcher notifyThis,
                          I2PTunnel tunnel,
                          String pkf)
                   throws IllegalArgumentException
Throws:
IllegalArgumentException - if the I2PTunnel does not contain valid config to contact the router
Method Detail

clientConnectionRun

protected void clientConnectionRun(Socket s)
Description copied from class: I2PTunnelClientBase
Manage a connection in a separate thread. This only works if you do not override manageConnection()

Specified by:
clientConnectionRun in class I2PTunnelClientBase

startRunning

public void startRunning()
Description copied from class: I2PTunnelClientBase
Actually start working on incoming connections. *Must* be called by derived classes after initialization.

Overrides:
startRunning in class I2PTunnelClientBase

close

public boolean close(boolean forced)
Overrides:
close in class I2PTunnelClientBase