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) PRUDPPacketHandlerprivate final NetworkGlueListener(package private) static final LogIDs(package private) final LinkedList(package private) final AESemaphore(package private) final AESemaphoreprivate long(package private) longprivate long(package private) longFields inherited from interface com.biglybt.core.util.AEPriorityMixin
PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_NORMAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintlong[]getStats()booleanpacketReceived(DatagramPacket packet) intsend(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:
getPriorityin interfaceAEPriorityMixin
-
packetReceived
- Specified by:
packetReceivedin interfacePRUDPPrimordialHandler
-
send
- Specified by:
sendin interfaceNetworkGlue- Throws:
IOException
-
getStats
public long[] getStats()- Specified by:
getStatsin interfaceNetworkGlue
-