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

TorrentSession

public interface TorrentSession

Fields Summary
Constructors Summary
Methods Summary
public voidendSession(java.lang.String reason)
Terminate torrent session.

param
reason for ending the session

public voidsendSessionBitfield(DirectByteBuffer bitfield)
Send the given session bitfield to the peer.

param
bitfield to send

public voidsendSessionCancel(int piece_number, int piece_offset, int length)
Send the given session piece request cancel info to the peer.

param
piece_number of request
param
piece_offset of request
param
length of request

public voidsendSessionHave(int[] piece_numbers)
Send the given session piece number haves to the peer.

param
piece_numbers to notify have

public java.lang.ObjectsendSessionPiece(int piece_number, int piece_offset, DirectByteBuffer data)
Send the given requested session piece data chunk to the peer

param
piece_number of chunk
param
piece_offset of chunk
param
data of piece chunk
return
piece key used to notify on completion of piece message send

public voidsendSessionRequest(byte unchoke_id, int piece_number, int piece_offset, int length)
Send the given session piece request info to the peer.

param
unchoke_id given when the peer unchoked us
param
piece_number of request
param
piece_offset of request
param
length of requested chunk