[BACK]Return to testclient.java CVS log [TXT][DIR] Up to [local] / OpenXM / src / OpenMath

Diff for /OpenXM/src/OpenMath/testclient.java between version 1.1 and 1.2

version 1.1, 2000/01/28 06:22:01 version 1.2, 2000/03/15 15:02:06
Line 1 
Line 1 
 /**  /**
  * $OpenXM$   * $OpenXM: OpenXM/src/OpenMath/testclient.java,v 1.1 2000/01/28 06:22:01 tam Exp $
  *   *
  */   */
   
Line 62  final class testclient{
Line 62  final class testclient{
   
     try{ // receive a data which come from server      try{ // receive a data which come from server
       while(true){        while(true){
         CMO tmp;          OXmessage message = asir.receive();
   
         switch(asir.receiveOXtag()){          switch(message.getTag()){
         case OpenXM.OX_COMMAND:          case OXmessage.OX_COMMAND:
           System.out.println("> "+ asir.receiveSM());            System.out.println("SM> "+ message.getBody());
           break;            break;
   
         case OpenXM.OX_DATA:          case OXmessage.OX_DATA:
           tmp = asir.receiveCMO();            System.out.println("CMO> "+ message.getBody());
           System.out.println("=> "+ tmp);  
           break;            break;
         }          }
       }        }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>