FileDocCategorySizeDatePackage
TorrentSessionController.javaAPI DocAzureus 3.0.3.42794Thu Feb 09 19:42:52 GMT 2006com.aelitis.azureus.core.peermanager.download.session

TorrentSessionController

public class TorrentSessionController extends Object

Fields Summary
protected static final int
SESSION_TYPE_BT
protected static final int
SESSION_TYPE_AZ
private final com.aelitis.azureus.core.peermanager.download.TorrentDownload
download
private final TorrentSession
session
private final TorrentSessionListener
listener
Constructors Summary
protected TorrentSessionController(int session_type, com.aelitis.azureus.core.peermanager.download.TorrentDownload download, com.aelitis.azureus.core.peermanager.connection.AZPeerConnection peer, int remote_id, Map incoming_syn)

  
  
  
  
               
    this.download = download;
    
    if( session_type == SESSION_TYPE_AZ ) {
      session = new AZTorrentSession( download, peer, listener, remote_id, incoming_syn );
    }
    else {  //SESSION_TYPE_BT
      session = new BTTorrentSession( peer, listener );
    }
  
Methods Summary