Class TRTrackerServerTCP
java.lang.Object
com.biglybt.core.tracker.server.impl.TRTrackerServerImpl
com.biglybt.core.tracker.server.impl.tcp.TRTrackerServerTCP
- All Implemented Interfaces:
TRTrackerServer
- Direct Known Subclasses:
TRBlockingServer, TRNonBlockingServer
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final AEMonitor(package private) int(package private) static final int(package private) final Listprotected static File(package private) final Map(package private) static final int(package private) long(package private) static boolean(package private) static final long(package private) static final longprivate intstatic final longstatic final intprivate booleanprivate final booleanprivate final ThreadPoolprivate static final intFields inherited from class TRTrackerServerImpl
all_networks_permitted, announce_cache_period, announce_cache_threshold, banned_clients, CLIENT_TIMEOUT_MULTIPLIER, full_scrape_enable, listeners, listeners2, max_peers_to_send, max_seed_retention, permitted_networks, redirect_on_not_found, RETRY_MINIMUM_MILLIS, RETRY_MINIMUM_SECS, scrape_cache_period, seed_limit, send_peer_ids, support_experimental_extensions, this_mon, TIMEOUT_CHECKFields inherited from interface TRTrackerServer
DEFAULT_ANNOUNCE_CACHE_PEER_THRESHOLD, DEFAULT_ANNOUNCE_CACHE_PERIOD, DEFAULT_INC_BY, DEFAULT_INC_PER, DEFAULT_MAX_RETRY_DELAY, DEFAULT_MIN_RETRY_DELAY, DEFAULT_NAME, DEFAULT_NAT_CHECK_SECS, DEFAULT_SCRAPE_CACHE_PERIOD, DEFAULT_SCRAPE_RETRY_PERCENTAGE, DEFAULT_TRACKER_PORT, DEFAULT_TRACKER_PORT_SSL -
Constructor Summary
ConstructorsConstructorDescriptionTRTrackerServerTCP(String _name, int _port, boolean _ssl, boolean _apply_ip_filter, boolean _start_up_ready, Map<String, Object> _properties) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected booleancheckDOSRemove(Map.Entry eldest) getHost()intgetPort()booleanprotected booleanhandleExternalRequest(TRTrackerServerProcessorTCP processor, InetSocketAddress local_address, InetSocketAddress client_address, String user, String url, URL absolute_url, String header, InputStream is, OutputStream os, AsyncController async, boolean[] keep_alive) booleanisSSL()voidrunProcessor(TRTrackerServerProcessorTCP processor) protected voidsetPort(int _port) voidsetRestrictNonBlocking(boolean restrict) Methods inherited from class TRTrackerServerImpl
addAuthenticationListener, addLink, addListener, addListener2, addRequestListener, close, closeSupport, deny, destroySupport, getAllNetworksSupported, getAnnounceCachePeerThreshold, getAnnounceCachePeriod, getAnnounceRetryInterval, getBiasedPeers, getMaxPeersToSend, getMaxSeedRetention, getMinAnnounceRetryInterval, getMinScrapeRetryInterval, getName, getPassword, getPeers, getPermittedNetworks, getScrapeCachePeriod, getScrapeRetryInterval, getSeedAnnounceIntervalMultiplier, getSeedLimit, getSendPeerIds, getStats, getStats, getTorrent, getTorrent, getTorrentCount, getTorrents, getUsername, hasExternalAuthorisation, hasInternalAuthorisation, isCompactEnabled, isEnabled, isFullScrapeEnabled, isIPFiltered, isKeepAliveEnabled, isKeyEnabled, isKnownTorrent, isReady, isTrackerPasswordEnabled, isWebPasswordEnabled, isWebPasswordHTTPSOnly, performExternalAuthorisation, performExternalAuthorisation, permit, permit, postProcess, preProcess, readConfig, readConfigSettings, removeAuthenticationListener, removeLink, removeListener, removeListener2, removeRequestListener, setBiasedPeers, setEnabled, setEnableKeepAlive, setReady, supportsExtensions, timerLoop, updateStats, updateTimeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TRTrackerServer
getBindIP
-
Field Details
-
THREAD_POOL_SIZE
private static final int THREAD_POOL_SIZE -
PROCESSING_GET_LIMIT
public static final long PROCESSING_GET_LIMIT -
PROCESSING_POST_MULTIPLIER
public static final int PROCESSING_POST_MULTIPLIER -
ssl
private final boolean ssl -
port
private int port -
restrict_non_blocking_requests
private boolean restrict_non_blocking_requests -
thread_pool
-
LOG_DOS_TO_FILE
static boolean LOG_DOS_TO_FILE -
dos_log_file
-
class_mon
-
DOS_map
-
dos_list
-
last_dos_check
long last_dos_check -
MAX_DOS_ENTRIES
static final long MAX_DOS_ENTRIES- See Also:
-
MAX_DOS_RETENTION
static final long MAX_DOS_RETENTION- See Also:
-
DOS_CHECK_DEAD_WOOD_COUNT
static final int DOS_CHECK_DEAD_WOOD_COUNT- See Also:
-
DOS_MIN_INTERVAL
static final int DOS_MIN_INTERVAL- See Also:
-
dos_check_count
int dos_check_count
-
-
Constructor Details
-
TRTrackerServerTCP
public TRTrackerServerTCP(String _name, int _port, boolean _ssl, boolean _apply_ip_filter, boolean _start_up_ready, Map<String, Object> _properties) throws TRTrackerServerException- Throws:
TRTrackerServerException
-
-
Method Details
-
runProcessor
-
getRestrictNonBlocking
public boolean getRestrictNonBlocking() -
setRestrictNonBlocking
public void setRestrictNonBlocking(boolean restrict) -
checkDOS
- Throws:
UnknownHostException
-
checkDOSRemove
-
getPort
public int getPort() -
setPort
protected void setPort(int _port) -
getHost
-
isSSL
public boolean isSSL() -
handleExternalRequest
protected boolean handleExternalRequest(TRTrackerServerProcessorTCP processor, InetSocketAddress local_address, InetSocketAddress client_address, String user, String url, URL absolute_url, String header, InputStream is, OutputStream os, AsyncController async, boolean[] keep_alive) throws IOException - Throws:
IOException
-