All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class PREDATOR.JCLReflector

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----reflector.Reflector
                   |
                   +----PREDATOR.JCLReflector

public class JCLReflector
extends Reflector
This class implements a reflector object. A reflector routes socket connections from one machine to another. These are used to permit applets to connect to sockets on machines different from the machine from which they were downloaded. This particular reflector is used to reflect JCL connections to PREDATOR, which are more complicated, since they use two socket connections: one for standard communications and one for error communications. As a result, the reflector must snoop on the protocol setup to read the error port and set up a new reflector for that port.


Variable Index

 o ErrorConn

Constructor Index

 o JCLReflector(int, ServerSite, boolean)
Initializes a reflector to accept a connection on the supplied service port and route it to the supplied service site.

Method Index

 o main(String[])
Starts a reflector.
 o run()
The thread's run function.

Variables

 o ErrorConn
 protected boolean ErrorConn

Constructors

 o JCLReflector
 public JCLReflector(int ServicePort,
                     ServerSite Site,
                     boolean ErrorConn)
Initializes a reflector to accept a connection on the supplied service port and route it to the supplied service site.

Methods

 o run
 public void run()
The thread's run function.

Overrides:
run in class Reflector
 o main
 public static void main(String args[])
Starts a reflector. The required arguments are:
  1. The local port on which the reflector will accept connections
  2. The host machine to which the socket connections will be directed
  3. The port number of that host which will accept socket connections


All Packages  Class Hierarchy  This Package  Previous  Next  Index