Class NetworkGlueUDP
java.lang.Object
com.biglybt.core.networkmanager.impl.udp.NetworkGlueUDP
- All Implemented Interfaces:
NetworkGlue
,AEPriorityMixin
,PRUDPPrimordialHandler
public class NetworkGlueUDP
extends Object
implements NetworkGlue, PRUDPPrimordialHandler, AEPriorityMixin
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) PRUDPPacketHandler
private final NetworkGlueListener
(package private) static final LogIDs
(package private) final LinkedList
(package private) final AESemaphore
(package private) final AESemaphore
private long
(package private) long
private long
(package private) long
Fields inherited from interface com.biglybt.core.util.AEPriorityMixin
PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_NORMAL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
long[]
getStats()
boolean
packetReceived
(DatagramPacket packet) int
send
(int local_port, InetSocketAddress target, byte[] data)
-
Field Details
-
LOGID
-
listener
-
handler
PRUDPPacketHandler handler -
msg_queue
-
msg_queue_sem
-
msg_queue_slot_sem
-
total_packets_received
private long total_packets_received -
total_bytes_received
private long total_bytes_received -
total_packets_sent
long total_packets_sent -
total_bytes_sent
long total_bytes_sent
-
-
Constructor Details
-
NetworkGlueUDP
-
-
Method Details
-
getPriority
public int getPriority()- Specified by:
getPriority
in interfaceAEPriorityMixin
-
packetReceived
- Specified by:
packetReceived
in interfacePRUDPPrimordialHandler
-
send
- Specified by:
send
in interfaceNetworkGlue
- Throws:
IOException
-
getStats
public long[] getStats()- Specified by:
getStats
in interfaceNetworkGlue
-