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

Diff for /OpenXM/src/OpenMath/ORG/openxm/tam/OpenXM.java between version 1.8 and 1.10

version 1.8, 2001/11/04 09:58:14 version 1.10, 2002/10/27 10:39:32
Line 1 
Line 1 
 /**  /**
  * $OpenXM: OpenXM/src/OpenMath/ORG/openxm/tam/OpenXM.java,v 1.7 2001/11/01 08:54:50 takayama Exp $   * $OpenXM: OpenXM/src/OpenMath/ORG/openxm/tam/OpenXM.java,v 1.9 2002/10/23 08:40:16 takayama Exp $
  */   */
 package ORG.openxm.tam;  package ORG.openxm.tam;
   
Line 84  public class OpenXM{
Line 84  public class OpenXM{
     stream.sendByteOrder();      stream.sendByteOrder();
   }    }
   
     public OpenXM(String host,int CtrlPort,int StreamPort,String ox_server,int oxd_port,String pass)
              throws IOException{
                    // pass may be a null string.
       control = new OpenXMstream(host,CtrlPort,pass);
       stream = new OpenXMstream(host,StreamPort,pass);
       System.err.println("Listening...");
       System.err.println("Launch ox server with the reverse option, e.g., ox -ox ox_asir -reverse");
       // Launch ox_server by the oxd daemon (oxd_port).
       // BUG: It has not yet been implemented.
       control.OpenXMstreamAccept();
       System.err.println("Accepted the control port.");
       stream.OpenXMstreamAccept();
       System.err.println("Accepted the data port.");
   
   
       control.sendByteOrder();
       stream.sendByteOrder();
     }
   
   public OpenXM(String ox_server) throws IOException {
           int oxdPort = 8089;
           String host = "localhost";
           oxdStream oxd = new oxdStream(oxdPort);
           int cport,dport;
           cport = oxd.startPhase1();
           dport = cport+1;
           try {
                   control = new OpenXMstream(host,cport,"");
                   stream = new OpenXMstream(host,dport,"");
           }catch( IOException e) {
                   System.err.println("Could not open ports for client.");
                   oxd.write("<bye/>");
           }
   
           System.err.println("Listenning...");
   
           oxd.startPhase2(ox_server,cport);
   
       control.OpenXMstreamAccept();
       System.err.println("Accepted the control port.");
       stream.OpenXMstreamAccept();
       System.err.println("Accepted the data port.");
   
   
       control.sendByteOrder();
       stream.sendByteOrder();
   }
   
   
   /*&ja    /*&ja
    * 接続の初期化を行なう. 現在は未実装.     * サーバの計算中断を行なう. 現在は未実装.
    */     */
   /**    /**
    * Resetting the engine process.  It has not yet been implemented.     * Resetting the engine process.  It has not yet been implemented.

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.10

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