All Packages Class Hierarchy This Package Previous Next Index
Class application.BytestreamReceiverClient
java.lang.Object
|
+----application.BytestreamReceiverClient
- public class BytestreamReceiverClient
- extends Object
- implements Runnable
A class to act as an application to drive the sending end of a
bytestream conversation. Matches up with a
BytestreamReceiverClient on the other end, and works through
a ReliableSender instance to acheive communication.
You probably won't need to worry about this class, since it
will be set up by the config file parser.
-
BytestreamReceiverClient(ReliableReceiver, Vector, Address)
- Creates a new recevier client and starts the run thread for
it.
-
run()
- The receiving thread.
BytestreamReceiverClient
public BytestreamReceiverClient(ReliableReceiver receiveImplementation,
Vector upPeriods,
Address address)
- Creates a new recevier client and starts the run thread for
it. Clients should not be made to share receiver instances,
because it probably won't work.
- Parameters:
- receiveImplementation - the ReliableReceiver instance
(which needs to be connected to a network and have
an address set) through which to receive
- upPeriods - a vector of TimeIntervals
indicating over which time periods bandwidth
should be computed. If null then
bandwidth is computed continuously.
- address - the address of this host. Used to name
the receiving thread and for messages
run
public void run()
- The receiving thread. Clients should not call this: the
thread is started automatically by the constructor
All Packages Class Hierarchy This Package Previous Next Index