com.aelitis.azureus.core.networkmanager.impl.udp
Class NetworkGlueUDP

java.lang.Object
  extended by com.aelitis.azureus.core.networkmanager.impl.udp.NetworkGlueUDP
All Implemented Interfaces:
NetworkGlue, AEPriorityMixin, PRUDPPrimordialHandler

public class NetworkGlueUDP
extends Object
implements NetworkGlue, PRUDPPrimordialHandler, AEPriorityMixin


Field Summary
 
Fields inherited from interface com.aelitis.azureus.core.util.AEPriorityMixin
PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_NORMAL
 
Constructor Summary
protected NetworkGlueUDP(NetworkGlueListener _listener)
           
 
Method Summary
 int getPriority()
           
 long[] getStats()
           
 boolean packetReceived(DatagramPacket packet)
           
 int send(int local_port, InetSocketAddress target, byte[] data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkGlueUDP

protected NetworkGlueUDP(NetworkGlueListener _listener)
Method Detail

getPriority

public int getPriority()
Specified by:
getPriority in interface AEPriorityMixin

packetReceived

public boolean packetReceived(DatagramPacket packet)
Specified by:
packetReceived in interface PRUDPPrimordialHandler

send

public int send(int local_port,
                InetSocketAddress target,
                byte[] data)
         throws IOException
Specified by:
send in interface NetworkGlue
Throws:
IOException

getStats

public long[] getStats()
Specified by:
getStats in interface NetworkGlue