FileDocCategorySizeDatePackage
PEPeerTransportFactory.javaAPI DocAzureus 3.0.3.42636Tue Nov 21 22:21:00 GMT 2006org.gudy.azureus2.core3.peer.impl

PEPeerTransportFactory

public class PEPeerTransportFactory extends Object
author
parg

Fields Summary
protected static Map
extension_handlers
Constructors Summary
Methods Summary
public static java.util.ListcreateExtendedTransports(PEPeerControl manager, java.lang.String protocol_name, java.util.Map details)

		System.out.println( "createExtendedTransports:" + protocol_name );
		
		PEPeerTransportExtensionHandler	handler = (PEPeerTransportExtensionHandler)extension_handlers.get( protocol_name );
		
		if ( handler == null ){
			
			System.out.println( "\tNo handler");
			
			return( new ArrayList());
		}
		
		return( handler.handleExtension( manager, details ));
	
public static PEPeerTransportcreateTransport(PEPeerControl control, java.lang.String peer_source, java.lang.String ip, int tcp_port, int udp_port, boolean use_tcp, boolean require_crypto_handshake, byte crypto_level)
Create a new default outgoing connection transport.

param
control
param
ip
param
port
return
transport

	
  
                    
	  
	
			 	
						
		 				 
		 				
							
						
		 			
						 
	
		return new PEPeerTransportProtocol( control, peer_source, ip, tcp_port, udp_port, use_tcp, require_crypto_handshake, crypto_level );    
	
public static PEPeerTransportcreateTransport(PEPeerControl control, java.lang.String peer_source, com.aelitis.azureus.core.networkmanager.NetworkConnection connection)

    return new PEPeerTransportProtocol( control, peer_source, connection );
  
public static voidregisterExtensionHandler(java.lang.String protocol_name, PEPeerTransportExtensionHandler handler)

		extension_handlers.put( protocol_name, handler );