All Packages Class Hierarchy This Package Previous Next Index
Interface edu.cmu.paid.network.IClient
- public interface IClient
Interface to CClient object.
- Author:
- Will Ross
-
endXmit()
- Transmission complete.
-
getName()
- Returns the name of the object.
-
getNumObjects()
- Returns total number of objects being sent.
-
getPercent()
- Returns percentage of objects received.
-
killDownload()
- Tell our Session to stop sending and die.
-
receiveObject(DataObject)
- Receive a single object.
-
request(DataObject)
- Make a request to the Server.
-
startXmit(int)
- Start receiving objects.
-
waitForDone()
- Waits until all packets have been received.
-
waitForNum(int)
- Waits until a specified number of objects have
been transmitted.
-
waitForPct(int)
- Waits until a specified percent of the objects have
been transmitted.
request
public abstract Vector request(DataObject req)
- Make a request to the Server.
- Parameters:
- req - DataObject containing request.
- Returns:
- A Vector that will contain returned DataObjects.
startXmit
public abstract void startXmit(int len)
- Start receiving objects.
- Parameters:
- len - Number of objects to receive.
getNumObjects
public abstract int getNumObjects()
- Returns total number of objects being sent.
- Returns:
- number of objects being sent.
getPercent
public abstract int getPercent()
- Returns percentage of objects received.
- Returns:
- Percent of objects received.
killDownload
public abstract void killDownload()
- Tell our Session to stop sending and die.
receiveObject
public abstract void receiveObject(DataObject object)
- Receive a single object.
- Parameters:
- object - The object to receive.
endXmit
public abstract void endXmit()
- Transmission complete.
waitForPct
public abstract void waitForPct(int pct)
- Waits until a specified percent of the objects have
been transmitted.
waitForNum
public abstract void waitForNum(int num)
- Waits until a specified number of objects have
been transmitted.
waitForDone
public abstract void waitForDone()
- Waits until all packets have been received.
Wakes up when notify() is called from endXmit.
getName
public abstract String getName()
- Returns the name of the object. Used in unbinding.
- Returns:
- Name this object is (should be) bound to.
All Packages Class Hierarchy This Package Previous Next Index
This page is hosted by the Chair for Applied Software Engineering of the Technische Universität München.
Imprint (Impressum)