@@ -0,0 +1,995 @@
+package edu.umn.bulletinboard.common.rmi;%0A%0Aimport java.rmi.Remote;%0A%0A/**%0A * RMI interface to be implemented by each server for the communication between %0A * client and server. %3Cbr%3E%3Cbr%3E%0A * Supports following operations:%3Cbr%3E%0A * %3Cul%3E%0A * %09%09%3Cli%3E Post %3C/li%3E%0A * %09%09%3Cli%3E Read %3C/li%3E%0A * %09%09%3Cli%3E Choose %3C/li%3E%0A * %09%09%3Cli%3E Reply %3C/li%3E%0A * %3C/ul%3E%0A * @author prashant%0A *%0A */%0Apublic interface ClientServerCommunicate extends Remote%7B%0A%09%0A%09/**%0A%09 * Post an article to the server. This method will return the id of the %0A%09 * new article.%0A%09 * %0A%09 * @param article%0A%09 * @return%0A%09 */%0A%09public int Post(String article);%0A%09%0A%09/**%0A%09 * Reads the list of articles on the server. %0A%09 */%0A%09public String Read();%0A%09%0A%09/**%0A%09 * Returns the article corresponding to the passed id.%0A%09 * @param id%0A%09 * @return%0A%09 */%0A%09public String Choose(int id);%0A%09%0A%09/**%0A%09 * Posts the reply to article with %3Ccode%3Eid%3C/code%3E.%0A%09 * Returns the id of the new article created.%0A%09 * %0A%09 * @param reply%0A%09 * @param id%0A%09 * @return%0A%09 */%0A%09public int Reply(String reply, int id);%0A%09%0A%7D%0A

fix #5 interface for client-server communication