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 classNested classes/interfaces inherited from class TRTrackerServerProcessor
TRTrackerServerProcessor.lightweightPeerNested classes/interfaces inherited from class ThreadPoolTask
ThreadPoolTask.WorkerNested classes/interfaces inherited from class AERunnable
AERunnable.AERunnableNamed -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longprivate static final Map<Long, TRTrackerServerProcessorUDP.connectionData> private static final Map<String, List<TRTrackerServerProcessorUDP.connectionData>> private static longprivate static final LogIDsprivate static final SecureRandomprivate static final AEMonitorprivate final DatagramPacketprivate final TRTrackerServerUDPprivate final DatagramSocketFields inherited from class ThreadPoolTask
worker -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTRTrackerServerProcessorUDP(TRTrackerServerUDP _server, DatagramSocket _socket, DatagramPacket _packet) -
Method Summary
Modifier and TypeMethodDescriptionprotected longallocateConnectionId(String client_address) protected booleancheckConnectionId(String client_address, long id) protected Object[]handleAnnounceAndScrape(InetAddress client_address, String client_ip_address, PRUDPPacketRequest request, int request_type) protected PRUDPPackethandleConnect(String client_ip_address, PRUDPPacketRequest request) voidvoidMethods inherited from class TRTrackerServerProcessor
addScrapeInterval, addScrapeInterval, processTrackerRequest, taskCompletedMethods inherited from class ThreadPoolTask
getTaskState, releaseToPool, setTaskState, taskStartedMethods inherited from class 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
private static final Map<String, List<TRTrackerServerProcessorUDP.connectionData>> 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:
runSupportin classAERunnable
-
interruptTask
public void interruptTask()- Specified by:
interruptTaskin classThreadPoolTask
-
allocateConnectionId
-
checkConnectionId
-
handleConnect
-
handleAnnounceAndScrape
protected Object[] handleAnnounceAndScrape(InetAddress client_address, String client_ip_address, PRUDPPacketRequest request, int request_type) throws Exception - Throws:
Exception
-