Retrieves an octet return parameter from a CORBA object. This function can be used to get the return parameters of an operation.
IIOP.bdh
IiopGetOctet( in hIiop : number, out nOctet : number optional ): number;
Octet associated with the CORBA object
Parameter | Description |
---|---|
hIiop | Handle to a CORBA object |
nOctet | Variable receiving the octet associated with the CORBA object (optional) |
dcltrans transaction TGetOctet const HOST := "192.168.20.21"; // server PORT := 1052; // port KEY := "...\h00"; // key KEYLEN := 4; // key length var hIiop : number; // Handle to CORBA object nOctet : 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); // call request "Update" IiopRequest(hIiop, "Update"); // retrieve octet return parameter nOctet := IiopGetOctet(hIiop); write("return value = "); write(nOctet); writeln; IiopObjectRelease(hIiop); end TGetOctet;
return value = 54