FileDocCategorySizeDatePackage
DHTUDPPacketNetworkHandler.javaAPI DocAzureus 3.0.3.42258Thu Feb 09 19:42:44 GMT 2006com.aelitis.azureus.core.dht.transport.udp.impl.packethandler

DHTUDPPacketNetworkHandler

public class DHTUDPPacketNetworkHandler extends Object implements com.aelitis.net.udp.uc.PRUDPRequestHandler

Fields Summary
private DHTUDPPacketHandlerFactory
factory
private int
port
Constructors Summary
protected DHTUDPPacketNetworkHandler(DHTUDPPacketHandlerFactory _factory, int _port)

		factory		= _factory;
		port		= _port;
	
Methods Summary
public com.aelitis.azureus.core.dht.transport.udp.impl.DHTTransportUDPImplgetTransport(com.aelitis.azureus.core.dht.transport.udp.impl.DHTUDPPacket packet)

		if ( packet instanceof DHTUDPPacketRequest ){
			
			return( factory.getTransport( port, ((DHTUDPPacketRequest)packet).getNetwork()));
		
		}else{
			
			return( factory.getTransport( port, ((DHTUDPPacketReply)packet).getNetwork()));
		}	
	
public voidprocess(com.aelitis.net.udp.uc.PRUDPPacketRequest _request)

		DHTUDPPacketRequest	request = (DHTUDPPacketRequest)_request;
		
		factory.process( port, request );