osl.tests.transport.udp.broadcast
Class TestRcvUDP
java.lang.Object
|
+--osl.tests.transport.udp.broadcast.TestRcvUDP
- public class TestRcvUDP
- extends java.lang.Object
- implements java.lang.Runnable, TransportClient
A simple test of UDP implementation of the transport layer
- Version:
- $Revision: 1.5 $ ($Date: 1999/12/29 03:16:59 $)
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
TestRcvUDP
public TestRcvUDP(Scheduler S,
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.