Class TRTrackerServerUDP
- java.lang.Object
-
- com.biglybt.core.tracker.server.impl.TRTrackerServerImpl
-
- com.biglybt.core.tracker.server.impl.udp.TRTrackerServerUDP
-
- All Implemented Interfaces:
TRTrackerServer
public class TRTrackerServerUDP extends TRTrackerServerImpl
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
closed
private java.net.InetAddress
current_bind_ip
private java.net.DatagramSocket
dg_socket
private static LogIDs
LOGID
private int
port
private ThreadPool
thread_pool
private static int
THREAD_POOL_SIZE
-
Fields inherited from class com.biglybt.core.tracker.server.impl.TRTrackerServerImpl
all_networks_permitted, announce_cache_period, announce_cache_threshold, banned_clients, class_mon, CLIENT_TIMEOUT_MULTIPLIER, full_scrape_enable, ip_filter, listeners, listeners2, max_peers_to_send, max_seed_retention, permitted_networks, redirect_on_not_found, restrict_non_blocking_requests, RETRY_MINIMUM_MILLIS, RETRY_MINIMUM_SECS, scrape_cache_period, seed_limit, send_peer_ids, support_experimental_extensions, this_mon, TIMEOUT_CHECK
-
Fields inherited from interface com.biglybt.core.tracker.server.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
Constructors Constructor Description TRTrackerServerUDP(java.lang.String _name, int _port, boolean _start_up_ready)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRequestListener(TRTrackerServerRequestListener l)
protected void
closeSupport()
java.net.InetAddress
getBindIP()
java.lang.String
getHost()
int
getPort()
boolean
isSSL()
protected void
recvLoop(java.net.DatagramSocket socket, java.net.InetSocketAddress address)
void
removeRequestListener(TRTrackerServerRequestListener l)
-
Methods inherited from class com.biglybt.core.tracker.server.impl.TRTrackerServerImpl
addAuthenticationListener, addLink, addListener, addListener2, close, 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, isKeepAliveEnabled, isKeyEnabled, isKnownTorrent, isReady, isTrackerPasswordEnabled, isWebPasswordEnabled, isWebPasswordHTTPSOnly, performExternalAuthorisation, performExternalAuthorisation, permit, permit, postProcess, preProcess, readConfig, readConfigSettings, removeAuthenticationListener, removeLink, removeListener, removeListener2, setBiasedPeers, setEnabled, setEnableKeepAlive, setReady, supportsExtensions, timerLoop, updateStats, updateTime
-
-
-
-
Field Detail
-
LOGID
private static final LogIDs LOGID
-
THREAD_POOL_SIZE
private static final int THREAD_POOL_SIZE
- See Also:
- Constant Field Values
-
thread_pool
private final ThreadPool thread_pool
-
port
private final int port
-
current_bind_ip
private java.net.InetAddress current_bind_ip
-
dg_socket
private java.net.DatagramSocket dg_socket
-
closed
private volatile boolean closed
-
-
Method Detail
-
getBindIP
public java.net.InetAddress getBindIP()
-
recvLoop
protected void recvLoop(java.net.DatagramSocket socket, java.net.InetSocketAddress address)
-
getPort
public int getPort()
-
getHost
public java.lang.String getHost()
-
isSSL
public boolean isSSL()
-
addRequestListener
public void addRequestListener(TRTrackerServerRequestListener l)
- Specified by:
addRequestListener
in interfaceTRTrackerServer
- Overrides:
addRequestListener
in classTRTrackerServerImpl
-
removeRequestListener
public void removeRequestListener(TRTrackerServerRequestListener l)
- Specified by:
removeRequestListener
in interfaceTRTrackerServer
- Overrides:
removeRequestListener
in classTRTrackerServerImpl
-
closeSupport
protected void closeSupport()
- Specified by:
closeSupport
in classTRTrackerServerImpl
-
-