osl.tests.transport.udp.pingmsgtiming
Class TestSendUDP
java.lang.Object
|
+--osl.tests.transport.udp.pingmsgtiming.TestSendUDP
- public class TestSendUDP
- extends java.lang.Object
- implements java.lang.Runnable, TransportClient
A simple test of the UDP implementation of the transport layer
- Version:
- $Revision: 1.6 $ ($Date: 1999/12/29 03:17:06 $)
|
Constructor Summary |
TestSendUDP(Scheduler S,
int toSend,
java.net.InetAddress rcvrAddr,
int port,
java.lang.String H)
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
TestSendUDP
public TestSendUDP(Scheduler S,
int toSend,
java.net.InetAddress rcvrAddr,
int port,
java.lang.String H)
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.