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 LinkedBlockingQueue<Object[]> private long(package private) longprivate long(package private) longFields inherited from interface 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
-
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
-