Retrieves the size of the reply associated with a CORBA object after an IiopRequest function call.
IIOP.bdh
IiopGetReplyDataLen( in hIiop : number, out nDataLen : number, in nAlign : number optional ): boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
hIiop | Handle to a CORBA object |
nDataLen | Variable receiving the size of the reply associated with a CORBA object |
nAlign |
Reply data alignment (optional). Possible options are:
Default setting is alignment to 1-byte boundaries. |
dcltrans transaction TGetReplyDataLen const HOST := "192.168.20.21"; // server PORT := 1052; // port KEY := "...\h00"; // key KEYLEN := 4; // key length var hIiop : number; // handle to CORBA object nLen : number; sLower : string; begin IiopSetMaxGiopVersion("1.0"); IiopSetByteOrder(IIOP_BIG_ENDIAN); // retrieve handle to server IiopObjectCreate(hIiop, "IDL:DemoObject:1.0", "1.2", HOST, PORT, KEY, KEYLEN); // call request "ToLower" with string parameter IiopSetString(hIiop, "CONVERT TO LOWERCASE"); IiopRequest(hIiop, "ToLower"); // retrieve length of return parameters IiopGetReplyDataLen(hIiop, nLen); write("length = "); write(nLen); writeln; // retrieve string return parameter IiopGetString(hIiop, sLower); write("converted string = "); write(sLower); writeln; IiopObjectRelease(hIiop); end TGetReplyDataLen;
length = 21converted string = convert to lowercase