import java.rmi.Remote;
import java.rmi.RemoteException;

public interface TesterInter extends Remote {

    void lock() throws RemoteException;
    void unlock() throws RemoteException;
    void printlnLog (String str ) throws RemoteException;
    void printLog (String str ) throws RemoteException;

    void Source(int localPort, String remoteDN, int remotePort,
                int aBufSize) throws RemoteException;
    void sendData(byte []data)  throws RemoteException;
    void closeSource()  throws RemoteException;
    void ackData(int n)  throws RemoteException;    

    void Sink(int localPort, String remoteDN, int remotePort,
              int aSinkAvailBytes) throws RemoteException;
    void readyToAccept(long n)  throws RemoteException;
    void closeSink()  throws RemoteException;
    void deliverData(byte []data)  throws RemoteException;  
}
