Retrieves an unsigned short value return parameter from a CORBA object. This function can be used to get the return parameters of an operation.
IIOP.bdh
IiopGetUShort( in hIiop : number, out nValue : number optional ):number;
unsigned short value associated with the CORBA object
Parameter | Description |
---|---|
hIiop | Handle to a CORBA object |
nValue | Variable receiving the unsigned short value associated with the CORBA object (optional) |
dcltrans transaction TGetUShort const HOST := "192.168.20.21"; // server PORT := 1052; // port KEY := "...\h00"; // key KEYLEN := 4; // key length var hIiop : number; // Handle to CORBA object nSum : 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 "Sum" with two unsigned short value parameters IiopSetUShort(hIiop, 1195); IiopSetUShort(hIiop, 477); IiopRequest(hIiop, "Sum"); // retrieve unsigned short value return parameter nSum := IiopGetUShort(hIiop); write("sum = "); write(nSum); writeln; IiopObjectRelease(hIiop); end TGetUShort;
sum = 1672
UnivB.bdf, Conf.bdf
You can find the sample script(s) here: <Public documents>\Silk Performer <version>\Samples\Corba