version 1.9, 2002/10/23 08:40:16 |
version 1.10, 2002/10/27 10:39:32 |
|
|
/** |
/** |
* $OpenXM: OpenXM/src/OpenMath/ORG/openxm/tam/OpenXM.java,v 1.8 2001/11/04 09:58:14 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 102 public class OpenXM{ |
|
Line 102 public class OpenXM{ |
|
control.sendByteOrder(); |
control.sendByteOrder(); |
stream.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 |
* サーバの計算中断を行なう. 現在は未実装. |
* サーバの計算中断を行なう. 現在は未実装. |
*/ |
*/ |