org.mpisws.p2p.filetransfer
Interface FileTransferListener
- All Known Implementing Classes:
- SimpleFileTransferListener
public interface FileTransferListener
fileTransferred
void fileTransferred(FileReceipt receipt,
long bytesTransferred,
long total,
boolean incoming)
- Parameters:
receipt
- description of what is being transferredbytesTransferred
- the bytes that have been transferred so fartotal
- bytes that will be transferredincoming
- true if downloding, false if uploading
msgTransferred
void msgTransferred(BBReceipt receipt,
int bytesTransferred,
int total,
boolean incoming)
- Parameters:
receipt
- description of what is being transferredbytesTransferred
- the bytes that have been transferred so fartotal
- bytes that will be transferredincoming
- true if downloding, false if uploading
transferCancelled
void transferCancelled(Receipt receipt,
boolean incoming)
- Parameters:
receipt
- the item that was cancelledincoming
- true if it's a download that was cancelled, false if it was an upload that was cancelled
transferFailed
void transferFailed(Receipt receipt,
boolean incoming)
- Parameters:
receipt
- the item that failedincoming
- true if it's a download that was cancelled, false if it was an upload that was cancelled
Copyright © 2001-2005 - Rice Pastry.