driver
Class tcp

java.lang.Object
  extended by driver.tcp

public class tcp
extends java.lang.Object

Small TCP test that can be run both inside and outside of JiST.

Since:
JIST1.0
Version:
$Id: tcp.java,v 1.1 2004/11/03 00:16:02 barr Exp $
Author:
Rimon Barr <barr+jist@cs.cornell.edu>

Nested Class Summary
static class tcp.Client
          Simple TCP client.
static class tcp.Server
          Simple TCP server.
 
Field Summary
static java.lang.String HOST
          default server address.
static byte[] msg_bulk
          bulk message to transfer.
static int NUM_BYTES
          number of bytes in bulk message to transfer.
static int PORT
          default client-server port.
 
Constructor Summary
tcp()
           
 
Method Summary
static void main(java.lang.String[] args)
          Program entry point: small TCP test that can be run inside and outside of JiST.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HOST

public static final java.lang.String HOST
default server address.

See Also:
Constant Field Values

PORT

public static final int PORT
default client-server port.

See Also:
Constant Field Values

msg_bulk

public static byte[] msg_bulk
bulk message to transfer.


NUM_BYTES

public static int NUM_BYTES
number of bytes in bulk message to transfer.

Constructor Detail

tcp

public tcp()
Method Detail

main

public static void main(java.lang.String[] args)
Program entry point: small TCP test that can be run inside and outside of JiST.

Parameters:
args - command-line parameters