next up previous contents
: Projects in work in : Server stack machine : Examples   ܼ

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

  7. SM_executeFunctionWithOptionalArgument
    

    It requests a server to pop s as a function name, to pop an optional argument opt, 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. opt is a list of lists of a keyword and a value. Keywords are strings.

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

    Request:
    int32 OX_COMMAND int32 SM_executeFunctionWithOptionalArgument

    Stack after the request: The Output of the execution.

    Output: none.

    Example of opt : (("p", 13),("vars",("x","y")))

    [Added in 2004-3-8]


next up previous contents
: Projects in work in : Server stack machine : Examples   ܼ
Nobuki Takayama Heisei 28.8.27.