net.i2p.i2ptunnel
public class I2PTunnelConnectClient extends I2PTunnelHTTPClientBase implements Runnable
(where protocol is generally HTTP/1.1 but is ignored) (where host is one of: example.i2p 52chars.b32.i2p 516+charsbase64 example.com (sent to one of the configured proxies) ) (port and protocol are ignored for i2p destinations) CONNECT host CONNECT host protocol CONNECT host:port CONNECT host:port protocol (this is the standard)Additional lines after the CONNECT line but before the blank line are ignored and stripped. The CONNECT line is removed for .i2p accesses but passed along for outproxy accesses. Ref:
INTERNET-DRAFT Ari Luotonen Expires: September 26, 1997 Netscape Communications CorporationMarch 26, 1997 Tunneling SSL Through a WWW Proxy
__clientId, __requestId, _errorDir, _proxyList, DEFAULT_READ_TIMEOUT, ERR_NO_OUTPROXY, PROP_AUTH, PROP_OUTPROXY_AUTH, PROP_OUTPROXY_PW, PROP_OUTPROXY_PW_PREFIX, PROP_OUTPROXY_USER, PROP_OUTPROXY_USER_PREFIX, PROP_PW, PROP_PW_PREFIX, PROP_USER
_clientId, _context, _executor, _log, _ownDest, DEFAULT_CONNECT_TIMEOUT, dest, l, mySockets, sockLock, sockMgr
open
Constructor and Description |
---|
I2PTunnelConnectClient(int localPort,
Logging l,
boolean ownDest,
String wwwProxy,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
Modifier and Type | Method and Description |
---|---|
protected void |
clientConnectionRun(Socket s)
Manage a connection in a separate thread.
|
protected I2PSocketOptions |
getDefaultOptions()
create the default options (using the default timeout, etc)
|
authorize, getPrefix, selectProxy
buildSocketManager, buildSocketManager, buildSocketManager, buildSocketManager, close, closeSocket, createI2PSocket, createI2PSocket, getDefaultOptions, getListenHost, getLocalPort, getSocketManager, getSocketManager, getSocketManager, manageConnection, run, startRunning, verifySocketManager
attachEventDispatcher, detachEventDispatcher, disconnected, errorOccurred, getEventDispatcher, getEvents, getEventValue, getId, getTunnel, ignoreEvents, isOpen, notifyEvent, reportAbuse, routerDisconnected, setId, setName, setTunnel, toString, unIgnoreEvents, waitEventValue
public I2PTunnelConnectClient(int localPort, Logging l, boolean ownDest, String wwwProxy, EventDispatcher notifyThis, I2PTunnel tunnel) throws IllegalArgumentException
IllegalArgumentException
- if the I2PTunnel does not contain
valid config to contact the routerprotected I2PSocketOptions getDefaultOptions()
getDefaultOptions
in class I2PTunnelClientBase
protected void clientConnectionRun(Socket s)
I2PTunnelClientBase
clientConnectionRun
in class I2PTunnelClientBase