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.pastry
Interface NetworkListener

    public interface NetworkListener

Represents a listener to pastry network activity

Version:
  $Id: NetworkListener.java 3507 2006-12-21 13:18:37Z jeffh $
Author:
  Peter Druschel

Field Summary
`static int` | `REASON_ACC_BOOTSTRAP`
`static int` | `REASON_ACC_NORMAL`
`static int` | `REASON_ACC_SR`
`static int` | `REASON_APP_SOCKET_NORMAL`
`static int` | `REASON_BOOTSTRAP`
`static int` | `REASON_NORMAL`
`static int` | `REASON_SR`
`static int` | `TYPE_SR_TCP`
`static int` | `TYPE_SR_UDP`
`static int` | `TYPE_TCP`
`static int` | `TYPE_UDP`

Method Summary
`void` | `channelClosed(java.net.InetSocketAddress addr)`
`void` | `channelOpened(java.net.InetSocketAddress addr, int reason)`
`void` | `dataReceived(int msgAddress, short msgType, java.net.InetSocketAddress socketAddress, int size, int wireType)`
`void` | `dataSent(int msgAddress, short msgType, java.net.InetSocketAddress socketAddress, int size, int wireType)`

Field Detail

### TYPE_TCP

    static final int TYPE_TCP

See Also:
  Constant Field Values

### TYPE_UDP

    static final int TYPE_UDP

See Also:
  Constant Field Values

### TYPE_SR_TCP

    static final int TYPE_SR_TCP

See Also:
  Constant Field Values

### TYPE_SR_UDP

    static final int TYPE_SR_UDP

See Also:
  Constant Field Values

### REASON_NORMAL

    static final int REASON_NORMAL

See Also:
  Constant Field Values

### REASON_SR

    static final int REASON_SR

See Also:
  Constant Field Values

### REASON_BOOTSTRAP

    static final int REASON_BOOTSTRAP

See Also:
  Constant Field Values

### REASON_ACC_NORMAL

    static final int REASON_ACC_NORMAL

See Also:
  Constant Field Values

### REASON_ACC_SR

    static final int REASON_ACC_SR

See Also:
  Constant Field Values

### REASON_ACC_BOOTSTRAP

    static final int REASON_ACC_BOOTSTRAP

See Also:
  Constant Field Values

### REASON_APP_SOCKET_NORMAL

    static final int REASON_APP_SOCKET_NORMAL

See Also:
  Constant Field Values

Method Detail

### channelOpened

    void channelOpened(java.net.InetSocketAddress addr,
                       int reason)

### channelClosed

    void channelClosed(java.net.InetSocketAddress addr)

### dataSent

    void dataSent(int msgAddress,
                  short msgType,
                  java.net.InetSocketAddress socketAddress,
                  int size,
                  int wireType)

### dataReceived

    void dataReceived(int msgAddress,
                      short msgType,
                      java.net.InetSocketAddress socketAddress,
                      int size,
                      int wireType)

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.