# Class proxy

    java.lang.Object
       |
       +----proxy

public class proxy
extends Object
implements Runnable

proxy class -- implements a proxy server to redirect network access

Version:
  $Id: proxy.java,v 1.4 1997/05/27 13:09:46 leo Exp $
Author:
  Matthias L. Jugel, Marcus Meißner

##

proxy(int, String, int)
  Create a server socket and start listening on the local port.

##

main(String[])
  This method is called when the application is run on the commandline.
run()
  Cycle around until an error occurs and wait for incoming connections.

##

proxy

      public proxy(int lport,
                   String raddr,
                   int rport)

  Create a server socket and start listening on the local port.
  Parameters:
    lport - local port
    raddr - address of the destination
    rport - port on the destination host

##

main

      public static void main(String args[])

  This method is called when the application is run on the commandline. It takes two or three arguments: usage: java proxy local-port destination-host destination-port
  Parameters:
    args - The command line arguments

run

      public void run()

  Cycle around until an error occurs and wait for incoming connections. An incoming connection will create two redirectors. One for local-host - destination-host and one for destination-host - local-host.