version 1.1, 2000/01/28 06:22:01 |
version 1.2, 2000/03/15 15:02:06 |
|
|
/** |
/** |
* $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; |
} |
} |
} |
} |