osl.tests.transport.tcp
Class TestSendTCP

java.lang.Object
  |
  +--osl.tests.transport.tcp.TestSendTCP

public class TestSendTCP
extends java.lang.Object
implements java.lang.Runnable, TransportClient

A simple test of the TCP implementation of the transport layer

Version:
$Revision: 1.5 $ ($Date: 1999/12/29 03:16:52 $)

Constructor Summary
TestSendTCP(Scheduler S, int toSend, java.net.InetAddress rcvrAddr, int port, java.lang.String H)
           
 
Method Summary
static void main(java.lang.String[] argv)
           
 void run()
           
 void transportException(TransportInstance target, TransportMessage msg, TransportException error)
          Called if the transport layer encounters an exception while attempting to send a previously queued message.
 void transportReceive(TransportInstance to, TransportMessage msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestSendTCP

public TestSendTCP(Scheduler S,
                   int toSend,
                   java.net.InetAddress rcvrAddr,
                   int port,
                   java.lang.String H)
Method Detail

main

public static void main(java.lang.String[] argv)

run

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

transportReceive

public void transportReceive(TransportInstance to,
                             TransportMessage msg)
Specified by:
transportReceive in interface TransportClient

transportException

public void transportException(TransportInstance target,
                               TransportMessage msg,
                               TransportException error)
Called if the transport layer encounters an exception while attempting to send a previously queued message. If a client holds several connections it is their responsibility to demultiplex incoming messages as appropriate. The target field may be used to determine which connection this message is associated with.
Specified by:
transportException in interface TransportClient
Parameters:
target - The TransportInstance reference that the original message was sent from. By assumption, the client is the owner of this instance.
msg - The original TransportMessage that was queued to be sent to the remote host.
error - The TransportException which encapsulates the error encountered during transmission.