com.eyebolt.iplib
Class HttpServerTest

java.lang.Object
  |
  +--com.eyebolt.iplib.HttpServerTest
All Implemented Interfaces:
java.lang.Runnable

public class HttpServerTest
extends java.lang.Object
implements java.lang.Runnable

Test iplib

Version:
0.01, 12 Jan 1998
Author:
John Gardner

Inner Class Summary
(package private)  class HttpServerTest.Listener
           
(package private)  class HttpServerTest.Replyer
           
(package private)  class HttpServerTest.TopCallback
           
 
Field Summary
(package private)  IPAddress address
           
(package private)  java.util.Date createDate
           
(package private)  long failed
           
(package private)  IPManager ipmanager
           
private  boolean keepGoing
           
(package private)  IPKey key
           
static int LOOPBACK_LISTEN_PORT
          listen port
(package private)  long messageCount
           
static int REPLY_MESSAGE_SIZE
          reply message size; generate character up to this count
private static boolean verbose
           
 
Constructor Summary
HttpServerTest()
          Constructor for the HttpServerTest object
 
Method Summary
private static void assert(boolean assertion)
           
 void init()
          Initializer (starts listening).
 long listen(int port)
          Start listening
private  void log(java.lang.Exception e)
           
private  void log(java.lang.String s)
           
static void main(java.lang.String[] args)
           
 void run()
           
 void setVerbose(boolean verbose)
           
 void showResults(java.io.PrintStream out)
          Description of the Method
 void shutdown()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

LOOPBACK_LISTEN_PORT

public static final int LOOPBACK_LISTEN_PORT
listen port

REPLY_MESSAGE_SIZE

public static final int REPLY_MESSAGE_SIZE
reply message size; generate character up to this count

verbose

private static boolean verbose

keepGoing

private boolean keepGoing

ipmanager

IPManager ipmanager

address

IPAddress address

key

IPKey key

createDate

java.util.Date createDate

failed

long failed

messageCount

long messageCount
Constructor Detail

HttpServerTest

public HttpServerTest()
Constructor for the HttpServerTest object
Parameters:
name - Description of Parameter
Method Detail

init

public void init()
Initializer (starts listening).
Parameters:
name - Description of Parameter

listen

public long listen(int port)
Start listening
Parameters:
port - port to listen on
Returns:
error code, if any

showResults

public void showResults(java.io.PrintStream out)
Description of the Method
Parameters:
out - Description of Parameter

run

public void run()
Specified by:
run in interface java.lang.Runnable

shutdown

public void shutdown()

setVerbose

public void setVerbose(boolean verbose)

main

public static void main(java.lang.String[] args)
                 throws java.lang.InterruptedException

log

private void log(java.lang.String s)

log

private void log(java.lang.Exception e)

assert

private static void assert(boolean assertion)


Copyright © 2001 Eyebolt, Inc.