util.rmi
Class Vpn

java.lang.Object
  extended by util.rmi.Vpn

public class Vpn
extends Object

Another playground for Vpn RMI. Consider this: We want the registry to run on Teneriffe, either on wifsip or archive We want access from archive and wifsip. From outside, we want access via the VPN addresses. Currently, archive is 161.72.132.71, wifsip is 161.72.132.72. The VPN addresses are: vpn-archive 141.33.210.34 and vpn-wifsip 141.33.210.38, respectively. In principle, we should be able to change only the client sockets by re-routing them, if connecting from the outside.

This finally made it, we have to sub-class the client factory only and re-route.


Nested Class Summary
static class Vpn.VpnC
          Class to test callback without special registries.
static class Vpn.VpnClientSocketFactory
           
static class Vpn.VpnS
          Class to test callback without special registries.
static class Vpn.VpnServerSocket
           
static class Vpn.VpnServerSocketFactory
           
static class Vpn.VpnSocket
           
 
Field Summary
private static InetAddress local
           
 
Constructor Summary
Vpn()
           
 
Method Summary
static void main(String[] arg)
          Test some things.
static void serverCharacteristics(ServerSocket s)
           
static void socketCharacteristics(Socket s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

local

private static InetAddress local
Constructor Detail

Vpn

public Vpn()
Method Detail

socketCharacteristics

public static void socketCharacteristics(Socket s)
                                  throws IOException
Throws:
IOException

serverCharacteristics

public static void serverCharacteristics(ServerSocket s)
                                  throws IOException
Throws:
IOException

main

public static void main(String[] arg)
                 throws UnknownHostException
Test some things.

Throws:
UnknownHostException