FileDocCategorySizeDatePackage
PRUDPPacketHandler.javaAPI DocAzureus 3.0.3.42950Tue Nov 14 21:51:42 GMT 2006com.aelitis.net.udp.uc

PRUDPPacketHandler

public interface PRUDPPacketHandler
author
parg

Fields Summary
public static final int
PRIORITY_LOW
public static final int
PRIORITY_MEDIUM
public static final int
PRIORITY_HIGH
public static final int
PRIORITY_IMMEDIATE
Constructors Summary
Methods Summary
public intgetPort()

public PRUDPRequestHandlergetRequestHandler()

public PRUDPPacketHandlerStatsgetStats()

public voidprimordialSend(byte[] data, java.net.InetSocketAddress target)

public voidsend(PRUDPPacket request_packet, java.net.InetSocketAddress destination_address)
Send only

param
request_packet
param
destination_address
throws
PRUDPPacketHandlerException

public voidsendAndReceive(PRUDPPacket request_packet, java.net.InetSocketAddress destination_address, PRUDPPacketReceiver receiver, long timeout, int priority)
Asynchronous send and receive

param
request_packet
param
destination_address
param
receiver
throws
PRUDPPacketHandlerException

public PRUDPPacketsendAndReceive(java.net.PasswordAuthentication auth, PRUDPPacket request_packet, java.net.InetSocketAddress destination_address)
Synchronous send and receive

param
auth
param
request_packet
param
destination_address
return
throws
PRUDPPacketHandlerException

public PRUDPPacketsendAndReceive(java.net.PasswordAuthentication auth, PRUDPPacket request_packet, java.net.InetSocketAddress destination_address, long timeout_millis)

public voidsetDelays(int send_delay, int receive_delay, int queued_request_timeout)

public voidsetExplicitBindAddress(java.net.InetAddress address)

public voidsetPrimordialHandler(PRUDPPrimordialHandler handler)

public voidsetRequestHandler(PRUDPRequestHandler request_handler)