Class TRTrackerServerProcessorUDP
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.udp.TRTrackerServerProcessorUDP
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
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
FieldsModifier and TypeFieldDescriptionstatic final long
private static final Map
<Long, TRTrackerServerProcessorUDP.connectionData> private static final Map
<String, List<TRTrackerServerProcessorUDP.connectionData>> private static long
private static final LogIDs
private static final SecureRandom
private static final AEMonitor
private final DatagramPacket
private final TRTrackerServerUDP
private final DatagramSocket
Fields inherited from class com.biglybt.core.util.ThreadPoolTask
worker
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TRTrackerServerProcessorUDP
(TRTrackerServerUDP _server, DatagramSocket _socket, DatagramPacket _packet) -
Method Summary
Modifier and TypeMethodDescriptionprotected long
allocateConnectionId
(String client_address) protected boolean
checkConnectionId
(String client_address, long id) protected Object[]
handleAnnounceAndScrape
(InetAddress client_address, String client_ip_address, PRUDPPacketRequest request, int request_type) protected PRUDPPacket
handleConnect
(String client_ip_address, PRUDPPacketRequest request) void
void
Methods inherited from class com.biglybt.core.tracker.server.impl.TRTrackerServerProcessor
addScrapeInterval, addScrapeInterval, processTrackerRequest, taskCompleted
Methods inherited from class com.biglybt.core.util.ThreadPoolTask
getTaskState, releaseToPool, setTaskState, taskStarted
Methods inherited from class com.biglybt.core.util.AERunnable
create, getName, run
-
Field Details
-
LOGID
-
CONNECTION_ID_LIFETIME
public static final long CONNECTION_ID_LIFETIME- See Also:
-
server
-
socket
-
request_dg
-
connection_id_map
-
connection_ip_map
-
last_timeout_check
private static long last_timeout_check -
random
-
random_mon
-
-
Constructor Details
-
TRTrackerServerProcessorUDP
protected TRTrackerServerProcessorUDP(TRTrackerServerUDP _server, DatagramSocket _socket, DatagramPacket _packet)
-
-
Method Details
-
runSupport
public void runSupport()- Specified by:
runSupport
in classAERunnable
-
interruptTask
public void interruptTask()- Specified by:
interruptTask
in classThreadPoolTask
-
allocateConnectionId
-
checkConnectionId
-
handleConnect
-
handleAnnounceAndScrape
protected Object[] handleAnnounceAndScrape(InetAddress client_address, String client_ip_address, PRUDPPacketRequest request, int request_type) throws Exception - Throws:
Exception
-