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.socket.nat
Class StubNATHandler

    java.lang.Object
      rice.pastry.socket.nat.StubNATHandler

All Implemented Interfaces:
  NATHandler

    public class StubNATHandler

extends java.lang.Object
implements NATHandler

DESCRIBE THE CLASS

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

Constructor Summary
`StubNATHandler(Environment environment, java.net.InetAddress address)` Constructor for StubNATHandler.

Method Summary
`int` | `findAvailableFireWallPort(int internal, int external, int tries, java.lang.String appName)` DESCRIBE THE METHOD
`java.net.InetAddress` | `findFireWall(java.net.InetAddress bindAddress)` DESCRIBE THE METHOD
`java.net.InetAddress` | `getFireWallExternalAddress()` Gets the FireWallExternalAddress attribute of the StubNATHandler object
`void` | `openFireWallPort(int local, int external, java.lang.String appName)` DESCRIBE THE METHOD

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### StubNATHandler

    public StubNATHandler(Environment environment,
                          java.net.InetAddress address)

  Constructor for StubNATHandler.

  Parameters:
    `environment` - DESCRIBE THE PARAMETER
    `address` - DESCRIBE THE PARAMETER

Method Detail

### getFireWallExternalAddress

    public java.net.InetAddress getFireWallExternalAddress()

  Gets the FireWallExternalAddress attribute of the StubNATHandler object

  Specified by:
    `getFireWallExternalAddress` in interface `NATHandler`
  Returns:
    The FireWallExternalAddress value

### findFireWall

    public java.net.InetAddress findFireWall(java.net.InetAddress bindAddress)
                                      throws java.io.IOException

  DESCRIBE THE METHOD

  Specified by:
    `findFireWall` in interface `NATHandler`
  Parameters:
    `bindAddress` - DESCRIBE THE PARAMETER
  Returns:
    DESCRIBE THE RETURN VALUE
  Throws:
    `java.io.IOException` - DESCRIBE THE EXCEPTION

### findAvailableFireWallPort

    public int findAvailableFireWallPort(int internal,
                                         int external,
                                         int tries,
                                         java.lang.String appName)
                                  throws java.io.IOException

  DESCRIBE THE METHOD

  Specified by:
    `findAvailableFireWallPort` in interface `NATHandler`
  Parameters:
    `internal` - DESCRIBE THE PARAMETER
    `external` - DESCRIBE THE PARAMETER
    `tries` - DESCRIBE THE PARAMETER
    `appName` - DESCRIBE THE PARAMETER
  Returns:
    DESCRIBE THE RETURN VALUE
  Throws:
    `java.io.IOException` - DESCRIBE THE EXCEPTION

### openFireWallPort

    public void openFireWallPort(int local,
                                 int external,
                                 java.lang.String appName)
                          throws java.io.IOException

  DESCRIBE THE METHOD

  Specified by:
    `openFireWallPort` in interface `NATHandler`
  Parameters:
    `local` - DESCRIBE THE PARAMETER
    `external` - DESCRIBE THE PARAMETER
    `appName` - DESCRIBE THE PARAMETER
  Throws:
    `java.io.IOException` - DESCRIBE THE EXCEPTION

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.