// PipeRemote.java
import java.rmi.*;
import java.rmi.server.*;

// A creates one of these and sends it to B.
// B can then invoke the send() operation on theirs,
// and it is received on the instance held by A.
// Sending a runnable sends code back to A -- the object
// must be serializable.

public interface PipeRemote extends java.rmi.Remote {
	public void send(String message) throws RemoteException;
	public void sendRunnable(Runnable runnable) throws RemoteException;
}

