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

Diff for /OpenXM/src/OpenMath/OMproxy.java between version 1.38 and 1.40

version 1.38, 2000/06/14 08:01:08 version 1.40, 2000/09/13 06:44:55
Line 1 
Line 1 
 /**  /**
  * $OpenXM: OpenXM/src/OpenMath/OMproxy.java,v 1.37 2000/06/13 14:04:19 tam Exp $   * $OpenXM: OpenXM/src/OpenMath/OMproxy.java,v 1.39 2000/07/03 05:57:43 tam Exp $
  */   */
   
 import JP.ac.kobe_u.math.tam.OpenXM.*;  import ORG.openxm.tam.*;
 import java.util.Stack;  import java.util.Stack;
 import java.io.*;  import java.io.*;
   
Line 15  public class OMproxy extends OpenXMserver{
Line 15  public class OMproxy extends OpenXMserver{
     super(hostname,ControlPort,DataPort);      super(hostname,ControlPort,DataPort);
   }    }
   
   public void computeProcess(OpenXMconnection stream){    public void computeProcess(OpenXMstream stream){
     OM2OXM P = new OM2OXM();      OM2OXM P = new OM2OXM();
   
     debug("OMproxy started.");      debug("OMproxy started.");
Line 46  public class OMproxy extends OpenXMserver{
Line 46  public class OMproxy extends OpenXMserver{
       System.err.println(e.getMessage());        System.err.println(e.getMessage());
       e.printStackTrace();        e.printStackTrace();
       System.err.println("error occured, and recovering processes seems to be impossible.");        System.err.println("error occured, and recovering processes seems to be impossible.");
       }catch(Exception e){
         System.err.println(e.getMessage());
         e.printStackTrace();
         System.err.println("error occured, and recovering processes seems to be impossible.");
     }finally{      }finally{
       System.out.println("breaking...");        System.out.println("breaking...");
     }      }
Line 64  public class OMproxy extends OpenXMserver{
Line 68  public class OMproxy extends OpenXMserver{
   }    }
   */    */
   
   private void SM_popCMO(OpenXMconnection stream) throws java.io.IOException{    private void SM_popCMO(OpenXMstream stream) throws java.io.IOException{
     try{      try{
       if(stack.empty()){        if(stack.empty()){
         stream.send(new CMO_NULL());          stream.send(new CMO_NULL());
Line 114  public class OMproxy extends OpenXMserver{
Line 118  public class OMproxy extends OpenXMserver{
     return;      return;
   }    }
   
   private void SM_mathcap(OpenXMconnection stream) throws java.io.IOException{    private void SM_mathcap(OpenXMstream stream) throws java.io.IOException{
     CMO[] mathcap = new CMO[3];      CMO[] mathcap = new CMO[3];
   
     {      {
Line 163  public class OMproxy extends OpenXMserver{
Line 167  public class OMproxy extends OpenXMserver{
     debug("push: "+ stack.peek());      debug("push: "+ stack.peek());
   }    }
   
   private void SM_setMathCap(OpenXMconnection stream)    private void SM_setMathCap(OpenXMstream stream)
        throws java.io.IOException{         throws java.io.IOException{
     Object mathcap = stack.pop();      Object mathcap = stack.pop();
   
Line 173  public class OMproxy extends OpenXMserver{
Line 177  public class OMproxy extends OpenXMserver{
     stream.setMathCap((CMO_MATHCAP)mathcap);      stream.setMathCap((CMO_MATHCAP)mathcap);
   }    }
   
   private void StackMachine(SM mesg,OpenXMconnection stream)    private void StackMachine(SM mesg,OpenXMstream stream)
        throws java.io.IOException{         throws java.io.IOException{
     debug("receive: "+mesg);      debug("receive: "+mesg);
   

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.40

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