Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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` -

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 - Rice Pastry.