protected class I2PTunnelHTTPClientBase.OnTimeout extends Object implements I2PTunnelRunner.FailCallback
| Constructor and Description |
|---|
OnTimeout(Socket s,
OutputStream out,
String target,
boolean usingProxy,
String wwwProxy,
long id)Create a timeout callback. |
OnTimeout(Socket s,
OutputStream out,
String target,
boolean usingProxy,
String wwwProxy,
long id,
String targetHost,
boolean isSSL)Create a timeout callback with host tracking. |
public OnTimeout(Socket s, OutputStream out, String target, boolean usingProxy, String wwwProxy, long id)
s - the client socketout - the output streamtarget - the URI for an HTTP request, or the host name for CONNECTusingProxy - whether a WWW outproxy is in usewwwProxy - the outproxy destinationid - the request identifierpublic OnTimeout(Socket s, OutputStream out, String target, boolean usingProxy, String wwwProxy, long id, String targetHost, boolean isSSL)
s - the client socketout - the output streamtarget - the URI for an HTTP request, or the host name for CONNECTusingProxy - whether a WWW outproxy is in usewwwProxy - the outproxy destinationid - the request identifiertargetHost - if non-null, call noteProxyResult() with this as hostisSSL - to pass to noteProxyResult(). FALSE for ConnectClient.public void onFail(Exception ex)
onFail in interface I2PTunnelRunner.FailCallbackex - may be null