next up previous
Next: Projects in work in Up: Server stack machine Previous: Operators in the group

Operators in the group SMobject/Basic

1.
SM_pops

It requests a server to pop n and to discard elements obj1, obj2, $\ldots$, objn from the stack.

Stack before the request:
obj1 obj2 $\cdots$ objn Integer32 n

Request:
int32 OX_COMMAND int32 SM_pops

Output: none.

2.
int SM_setName

It requests a server to pop name, to pop obj, and to bind obj to a variable name in the current name space of the server. If an error has occurred CMO_ERROR2 is pushed onto the stack.

Stack before the request:
obj String name

Request:
int32 OX_COMMAND int32 SM_setName

Output: none.

3.
SM_evalName

It requests a server to pop name and to evaluate a variable name in the current name space. The Output of the evaluation OutputObj is pushed to the stack. If an error has occurred CMO_ERROR2 is pushed onto the stack.

Stack before the request:
String name

Request:
int32 OX_COMMAND int32 SM_evalName

Stack after the request:
OutputObj

Output: none.

4.
SM_executeFunction

It requests a server to pop s as a function name, to pop n as the number of arguments and to execute a local function s with n arguments popped from the stack. If an error has occurred CMO_ERROR2 is pushed to the stack.

Stack before the request:
objn $\cdots$ obj1 INT32 n String s

Request:
int32 OX_COMMAND int32 SM_executeFunction

Stack after the request: The Output of the execution.

Output: none.

5.
SM_popSerializedLocalObject

It requests a sever to pop an object, to convert it into a serialized form according to a local serialization scheme, and to send it to the stream as an OX message. An OX message tag corresponding to the local data format must be sent prior to the serialized data itself. This operation is used mainly on homogeneous distributed systems.

6.
SM_popCMO

It requests a server to pop an object from the stack, to convert it into a serialized form according to the standard CMO encoding scheme, and to send it to the stream with the OX_DATA header.

Request:
int32 OX_COMMAND int32 OX_popCMO

Output:
int32 OX_DATA Serialized CMO


next up previous
Next: Projects in work in Up: Server stack machine Previous: Operators in the group
Nobuki Takayama 平成12年4月13日