Class PRUDPPacketHandlerPluginProxy
java.lang.Object
com.biglybt.net.udp.uc.impl.PRUDPPacketHandlerPluginProxy
- All Implemented Interfaces:
PRUDPPacketHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate final PRUDPPacketHandlerprivate final AEProxyFactory.PluginProxyprivate final Socketprivate final InetSocketAddressFields inherited from interface PRUDPPacketHandler
PRIORITY_HIGH, PRIORITY_IMMEDIATE, PRIORITY_LOW, PRIORITY_MEDIUM -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPRUDPPacketHandlerPluginProxy(PRUDPPacketHandler _delegate, InetSocketAddress _target, AEProxyFactory.PluginProxy _pp) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoiddestroy()intgetPort()getStats()booleanopenSession(InetSocketAddress target, String[] networks, String reason) voidprimordialSend(byte[] data, InetSocketAddress target) voidvoidsend(PRUDPPacket request_packet, InetSocketAddress destination_address) Send onlyvoidsendAndReceive(PRUDPPacket request_packet, InetSocketAddress destination_address, PRUDPPacketReceiver receiver, long timeout, int priority) Asynchronous send and receivesendAndReceive(PasswordAuthentication auth, PRUDPPacket request_packet, InetSocketAddress destination_address) Synchronous send and receivesendAndReceive(PasswordAuthentication auth, PRUDPPacket request_packet, InetSocketAddress destination_address, long timeout_millis) sendAndReceive(PasswordAuthentication auth, PRUDPPacket request_packet, InetSocketAddress destination_address, long timeout_millis, int priority) voidsetDelays(int send_delay, int receive_delay, int queued_request_timeout) voidsetExplicitBindAddress(InetAddress address, boolean autoDelegate) voidsetRequestHandler(PRUDPRequestHandler request_handler) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PRUDPPacketHandler
getBindIP
-
Field Details
-
DEFAULT_TIMEOUT
private static final int DEFAULT_TIMEOUT- See Also:
-
pp
-
delegate
-
target
-
socket
-
-
Constructor Details
-
PRUDPPacketHandlerPluginProxy
protected PRUDPPacketHandlerPluginProxy(PRUDPPacketHandler _delegate, InetSocketAddress _target, AEProxyFactory.PluginProxy _pp) throws Exception - Throws:
Exception
-
-
Method Details
-
sendAndReceive
public PRUDPPacket sendAndReceive(PasswordAuthentication auth, PRUDPPacket request_packet, InetSocketAddress destination_address) throws PRUDPPacketHandlerException Description copied from interface:PRUDPPacketHandlerSynchronous send and receive- Specified by:
sendAndReceivein interfacePRUDPPacketHandler- Parameters:
auth-request_packet-destination_address-- Returns:
- Throws:
PRUDPPacketHandlerException
-
sendAndReceive
public PRUDPPacket sendAndReceive(PasswordAuthentication auth, PRUDPPacket request_packet, InetSocketAddress destination_address, long timeout_millis) throws PRUDPPacketHandlerException - Specified by:
sendAndReceivein interfacePRUDPPacketHandler- Throws:
PRUDPPacketHandlerException
-
sendAndReceive
public PRUDPPacket sendAndReceive(PasswordAuthentication auth, PRUDPPacket request_packet, InetSocketAddress destination_address, long timeout_millis, int priority) throws PRUDPPacketHandlerException - Specified by:
sendAndReceivein interfacePRUDPPacketHandler- Throws:
PRUDPPacketHandlerException
-
sendAndReceive
public void sendAndReceive(PRUDPPacket request_packet, InetSocketAddress destination_address, PRUDPPacketReceiver receiver, long timeout, int priority) throws PRUDPPacketHandlerException Description copied from interface:PRUDPPacketHandlerAsynchronous send and receive- Specified by:
sendAndReceivein interfacePRUDPPacketHandler- Parameters:
request_packet-destination_address-receiver-- Throws:
PRUDPPacketHandlerException
-
send
public void send(PRUDPPacket request_packet, InetSocketAddress destination_address) throws PRUDPPacketHandlerException Description copied from interface:PRUDPPacketHandlerSend only- Specified by:
sendin interfacePRUDPPacketHandler- Parameters:
request_packet-destination_address-- Throws:
PRUDPPacketHandlerException
-
getRequestHandler
- Specified by:
getRequestHandlerin interfacePRUDPPacketHandler
-
setRequestHandler
- Specified by:
setRequestHandlerin interfacePRUDPPacketHandler
-
primordialSend
public void primordialSend(byte[] data, InetSocketAddress target) throws PRUDPPacketHandlerException - Specified by:
primordialSendin interfacePRUDPPacketHandler- Throws:
PRUDPPacketHandlerException
-
hasPrimordialHandler
public boolean hasPrimordialHandler()- Specified by:
hasPrimordialHandlerin interfacePRUDPPacketHandler
-
addPrimordialHandler
- Specified by:
addPrimordialHandlerin interfacePRUDPPacketHandler
-
removePrimordialHandler
- Specified by:
removePrimordialHandlerin interfacePRUDPPacketHandler
-
getPort
public int getPort()- Specified by:
getPortin interfacePRUDPPacketHandler
-
getCurrentBindAddress
- Specified by:
getCurrentBindAddressin interfacePRUDPPacketHandler
-
getExplicitBindAddress
- Specified by:
getExplicitBindAddressin interfacePRUDPPacketHandler
-
setExplicitBindAddress
- Specified by:
setExplicitBindAddressin interfacePRUDPPacketHandler
-
setDelays
public void setDelays(int send_delay, int receive_delay, int queued_request_timeout) - Specified by:
setDelaysin interfacePRUDPPacketHandler
-
getStats
- Specified by:
getStatsin interfacePRUDPPacketHandler
-
openSession
public PRUDPPacketHandler openSession(InetSocketAddress target, String[] networks, String reason) throws PRUDPPacketHandlerException - Specified by:
openSessionin interfacePRUDPPacketHandler- Throws:
PRUDPPacketHandlerException
-
closeSession
- Specified by:
closeSessionin interfacePRUDPPacketHandler- Throws:
PRUDPPacketHandlerException
-
destroy
public void destroy()- Specified by:
destroyin interfacePRUDPPacketHandler
-