PEPeerTransportFactorypublic class PEPeerTransportFactory extends Object
Fields Summary |
---|
protected static Map | extension_handlers |
Methods Summary |
---|
public static java.util.List | createExtendedTransports(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 PEPeerTransport | createTransport(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.
return new PEPeerTransportProtocol( control, peer_source, ip, tcp_port, udp_port, use_tcp, require_crypto_handshake, crypto_level );
| public static PEPeerTransport | createTransport(PEPeerControl control, java.lang.String peer_source, com.aelitis.azureus.core.networkmanager.NetworkConnection connection)
return new PEPeerTransportProtocol( control, peer_source, connection );
| public static void | registerExtensionHandler(java.lang.String protocol_name, PEPeerTransportExtensionHandler handler)
extension_handlers.put( protocol_name, handler );
|
|