All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class application.BytestreamSenderClient

java.lang.Object
   |
   +----timer.TimerClient
           |
           +----application.BytestreamSenderClient

public class BytestreamSenderClient
extends TimerClient
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.


Constructor Index

 o BytestreamSenderClient(ReliableSender, Vector, Address, Address)
Creates a new sender client and starts the run thread for it.

Method Index

 o run()
The sending thread.

Constructors

 o BytestreamSenderClient
 public BytestreamSenderClient(ReliableSender sendImplementation,
                               Vector upPeriods,
                               Address address,
                               Address receiverAddress)
Creates a new sender client and starts the run thread for it. Clients should not be made to share sender instances, because it probably won't work.

Parameters:
sendImplementation - the ReliableSender instance (which needs to be connected to a network and have an address set) through which to transmit
upPeriods - a vector of TimeIntervals indicating which time periods data should be sent during. If null then this sender will transmit continuously forever
address - the address of this host. Used to name the sending thread
receiverAddress - the address of the receiver, used to open the connection

Methods

 o run
 public void run()
The sending thread. Clients should not call this: the thread is started automatically by the constructor


All Packages  Class Hierarchy  This Package  Previous  Next  Index