Class TRTrackerServerProcessorTCP
- java.lang.Object
-
- com.biglybt.core.util.AERunnable
-
- com.biglybt.core.util.ThreadPoolTask
-
- com.biglybt.core.tracker.server.impl.TRTrackerServerProcessor
-
- com.biglybt.core.tracker.server.impl.tcp.TRTrackerServerProcessorTCP
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
TRBlockingServerProcessor
,TRNonBlockingServerProcessor
public abstract class TRTrackerServerProcessorTCP extends TRTrackerServerProcessor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.biglybt.core.tracker.server.impl.TRTrackerServerProcessor
TRTrackerServerProcessor.lightweightPeer
-
Nested classes/interfaces inherited from class com.biglybt.core.util.AERunnable
AERunnable.AERunnableNamed
-
-
Field Summary
Fields Modifier and Type Field Description protected static char
CR
private boolean
disable_timeouts
protected static char
FF
protected static byte[]
HTTP_RESPONSE_END_GZIP
protected static byte[]
HTTP_RESPONSE_END_NOGZIP
protected static byte[]
HTTP_RESPONSE_START
protected static byte[]
HTTP_RESPONSE_XML_START
private static java.lang.String
lc_azureus_name
private static java.lang.String
MSG_CLIENT_NOT_SUPPORTED
protected static java.lang.String
NL
private TRTrackerServerTCP
server
private java.lang.String
server_url
protected static int
SOCKET_TIMEOUT
-
Fields inherited from class com.biglybt.core.util.ThreadPoolTask
worker
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TRTrackerServerProcessorTCP(TRTrackerServerTCP _server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
areTimeoutsDisabled()
protected java.lang.String
doAuthentication(java.net.InetSocketAddress remote_ip, java.lang.String url_path, java.lang.String header, java.io.OutputStream os, boolean tracker)
protected TRTrackerServerTCP
getServer()
protected boolean
handleExternalRequest(java.net.InetSocketAddress local_address, java.net.InetSocketAddress remote_address, java.lang.String user, java.lang.String url, java.lang.String header, java.io.InputStream is, java.io.OutputStream os, AsyncController async, boolean[] keep_alive)
protected boolean
isActive()
protected boolean
processRequest(java.lang.String input_header, java.lang.String lowercase_input_header, java.lang.String url_path, java.net.InetSocketAddress local_address, java.net.InetSocketAddress remote_address, boolean announce_and_scrape_only, boolean keep_alive, java.io.InputStream is, java.io.OutputStream os, AsyncController async)
void
setTimeoutsDisabled(boolean d)
-
Methods inherited from class com.biglybt.core.tracker.server.impl.TRTrackerServerProcessor
addScrapeInterval, addScrapeInterval, processTrackerRequest, taskCompleted
-
Methods inherited from class com.biglybt.core.util.ThreadPoolTask
getName, getTaskState, interruptTask, releaseToPool, setTaskState, taskStarted
-
Methods inherited from class com.biglybt.core.util.AERunnable
create, run, runSupport
-
-
-
-
Field Detail
-
SOCKET_TIMEOUT
protected static final int SOCKET_TIMEOUT
- See Also:
- Constant Field Values
-
CR
protected static final char CR
- See Also:
- Constant Field Values
-
FF
protected static final char FF
- See Also:
- Constant Field Values
-
NL
protected static final java.lang.String NL
- See Also:
- Constant Field Values
-
lc_azureus_name
private static final java.lang.String lc_azureus_name
-
HTTP_RESPONSE_START
protected static final byte[] HTTP_RESPONSE_START
-
HTTP_RESPONSE_XML_START
protected static final byte[] HTTP_RESPONSE_XML_START
-
HTTP_RESPONSE_END_GZIP
protected static final byte[] HTTP_RESPONSE_END_GZIP
-
HTTP_RESPONSE_END_NOGZIP
protected static final byte[] HTTP_RESPONSE_END_NOGZIP
-
MSG_CLIENT_NOT_SUPPORTED
private static java.lang.String MSG_CLIENT_NOT_SUPPORTED
-
server
private final TRTrackerServerTCP server
-
server_url
private final java.lang.String server_url
-
disable_timeouts
private boolean disable_timeouts
-
-
Constructor Detail
-
TRTrackerServerProcessorTCP
protected TRTrackerServerProcessorTCP(TRTrackerServerTCP _server)
-
-
Method Detail
-
areTimeoutsDisabled
public boolean areTimeoutsDisabled()
-
setTimeoutsDisabled
public void setTimeoutsDisabled(boolean d)
-
getServer
protected TRTrackerServerTCP getServer()
-
processRequest
protected boolean processRequest(java.lang.String input_header, java.lang.String lowercase_input_header, java.lang.String url_path, java.net.InetSocketAddress local_address, java.net.InetSocketAddress remote_address, boolean announce_and_scrape_only, boolean keep_alive, java.io.InputStream is, java.io.OutputStream os, AsyncController async) throws java.io.IOException
- Throws:
java.io.IOException
-
doAuthentication
protected java.lang.String doAuthentication(java.net.InetSocketAddress remote_ip, java.lang.String url_path, java.lang.String header, java.io.OutputStream os, boolean tracker) throws java.io.IOException
- Throws:
java.io.IOException
-
isActive
protected boolean isActive()
-
handleExternalRequest
protected boolean handleExternalRequest(java.net.InetSocketAddress local_address, java.net.InetSocketAddress remote_address, java.lang.String user, java.lang.String url, java.lang.String header, java.io.InputStream is, java.io.OutputStream os, AsyncController async, boolean[] keep_alive) throws java.io.IOException
- Throws:
java.io.IOException
-
-