Rice Pastry API

org.mpisws.p2p.filetransfer
Interface FileTransferCallback


public interface FileTransferCallback


Method Summary
 void fileReceived(java.io.File f, java.nio.ByteBuffer metadata)
          Called when a file is received.
 void messageReceived(java.nio.ByteBuffer bb)
          Called when a message is received.
 void receiveException(java.lang.Exception ioe)
          Called when the FileTransfer fails.
 

Method Detail

messageReceived

void messageReceived(java.nio.ByteBuffer bb)
Called when a message is received.

Parameters:
bb -

fileReceived

void fileReceived(java.io.File f,
                  java.nio.ByteBuffer metadata)
Called when a file is received.

Parameters:
f -
metadata -

receiveException

void receiveException(java.lang.Exception ioe)
Called when the FileTransfer fails.

Parameters:
ioe -

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection