FileDocCategorySizeDatePackage
NetworkConnection.javaAPI DocAzureus 3.0.3.43632Tue Jul 17 18:03:10 BST 2007com.aelitis.azureus.core.networkmanager

NetworkConnection

public interface NetworkConnection implements NetworkConnectionBase
Represents a managed network connection, over which messages can be sent and received.

Fields Summary
Constructors Summary
Methods Summary
public voidclose()
Close and shutdown this connection.

public voidconnect(com.aelitis.azureus.core.networkmanager.NetworkConnection$ConnectionListener listener)
Connect this connection's transport, i.e. establish the network connection. If this connection is already established (from an incoming connection for example), then this provides a mechanism to register the connection listener, in which case connectSuccess() will be called immediately.

param
listener notified on connect success or failure

public voidconnect(java.nio.ByteBuffer initial_outbound_data, com.aelitis.azureus.core.networkmanager.NetworkConnection$ConnectionListener listener)

public TransportdetachTransport()
Decouples the transport from this network connection so it can be reused

return
null if detach failed

public voidenableEnhancedMessageProcessing(boolean enable)
Upgrade the connection to high-speed transfer processing.

param
enable true for high-speed processing, false for normal processing

public TransportgetTransport()
Get the connection's data transport interface.

return
the transport - MAY BE NULL if not yet fully connected

public booleanisConnected()

public voidstartMessageProcessing()
Begin processing incoming and outgoing message queues.

param
upload_group upload rate limit group to use
param
download_group download rate limit group to use