IiopSetULLong Function

Action

Associates an 8-byte long parameter with a CORBA object or with an Any data type.

Include file

IIOP.bdh

Syntax

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

Return value

  • true if successful

  • false otherwise

Parameter Description
hIiop Handle to a CORBA object
nValue Unsigned 8-byte long value that will be associated with the CORBA object.

Example

dcltrans
  transaction TSetLong
  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 unsigned 8-byte long parameter to request
    IiopSetULLong(hIiop, 593814064);
    // call request "DecToHex" with long parameter
    IiopRequest(hIiop, "DecToHex");
    ...
    IiopObjectRelease(hIiop);
  end TSetLong;