IiopSetULong Function

Action

Associates an unsigned long value parameter with a CORBA object. This function can be used to set parameters of a request in advance of calling the IiopRequest function.

Include file

IIOP.bdh

Syntax

IiopSetULong( in hIiop  : number,
              in nValue : number ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
hIiop Object handle representing a pointer to a CORBA object
nValue Unsigned long value that will be associated with the CORBA object Note: If you specify values greater than 2147483647, you have to use the hexadecimal notation.

Example

dcltrans
  transaction TSetULong
  const
    HOST   := "192.168.20.21"; // server
    PORT   := 1052;            // port
    KEY    := "...\h00";       // key
    KEYLEN := 4;               // key length
  var
    hIiop: number; // handle to CORBA object
  begin
    IiopSetMaxGiopVersion("1.2");
    IiopSetByteOrder(IIOP_BIG_ENDIAN);

    // retrieve handle to server
    IiopObjectCreate(hIiop, "IDL:DemoObject:1.0", "1.2",
                     HOST, PORT, KEY, KEYLEN);
    // pass two unsigned long value parameters to request
    IiopSetULong(hIiop, 14501835);
    IiopSetULong(hIiop, 1933766921);

    // call request "Sum" with two unsigned long value parameters
    IiopRequest(hIiop, "Sum");
    ...
    IiopObjectRelease(hIiop);
  end TSetULong;

Sample scripts

UnivB.bdf, Conf.bdf

You can find the sample script(s) here: <Public documents>\Silk Performer <version>\Samples\Corba