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

## rice.p2p.commonapi.appsocket
Interface AppSocketReceiver

    public interface AppSocketReceiver

Interface to receive an application level socket. This allows individual applications to do their own bandwidth/flow control.

Version:
  $Id: pretty.settings 2305 2005-03-11 20:22:33Z jeffh $
Author:
  Jeff Hoye

Method Summary
`void` | `receiveException(AppSocket socket, java.lang.Exception e)` Called when there is an error
`void` | `receiveSelectResult(AppSocket socket, boolean canRead, boolean canWrite)` Called when a socket is available for read/write
`void` | `receiveSocket(AppSocket socket)` Called when we have a new socket (due to a call to connect or accept)

Method Detail

### receiveSocket

    void receiveSocket(AppSocket socket)

  Called when we have a new socket (due to a call to connect or accept)

  Parameters:
    `socket` - DESCRIBE THE PARAMETER

### receiveSelectResult

    void receiveSelectResult(AppSocket socket,
                             boolean canRead,
                             boolean canWrite)

  Called when a socket is available for read/write

  Parameters:
    `socket` - DESCRIBE THE PARAMETER
    `canRead` - DESCRIBE THE PARAMETER
    `canWrite` - DESCRIBE THE PARAMETER

### receiveException

    void receiveException(AppSocket socket,
                          java.lang.Exception e)

  Called when there is an error

  Parameters:
    `socket` - DESCRIBE THE PARAMETER
    `e` - DESCRIBE THE PARAMETER

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.