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 ); }