IiopParserRelease Function

Action

Releases a CORBA parser object and frees all resources.

Include file

IIOP.bdh

Syntax

IiopParserRelease(inout hParser: number): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
hParser A handle to an IIOP parser object.

Example

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

    // retrieve handle to server
    IiopObjectCreate(hIiop, "IDL:DemoObject:1.0", "1.2",HOST, PORT, KEY, KEYLEN);
    // create service context
    IiopBeginServiceContext(hIiop, 1, IIOP_LITTLE_ENDIAN);
    IiopSetUlong(hIiop, 0x1010);
    IiopSetUlong(hIiop, 0x0110);
    IiopEndServiceContext(hIiop);

    // pass long value parameter to request
    IiopSetLong(hIiop, 593814064);

    // call request "DecToHex" with long parameter
    IiopRequest(hIiop, "DecToHex");
    IiopGetServiceContextList(hIiop, hSrvCtx);
    ...
    IiopParserRelease(hSrvCtx);
    IiopObjectRelease(hIiop);
  end TServiceContext;