Retrieves the key used to identify a specified CORBA object.
IIOP.bdh
true if successful
false otherwise
Parameter | Description |
---|---|
hIiop | Handle to a CORBA object. |
sKey | Buffer receiving the key used to identify the specified CORBA object. |
nKeySize | Size of the buffer receiving the key (optional). |
nKeyLen | Variable receiving the actual size of the key (optional). |
dcltrans transaction TMain const HOST := "192.168.20.21"; // server PORT := 1052; // port KEY := "...\h00"; // key KEYLEN := 4; // key length var hIiop, nPort : number; sHost, sKey, sInterface : string; begin IiopSetMaxGiopVersion("1.2"); IiopSetByteOrder(IIOP_BIG_ENDIAN); IiopObjectCreate(hIiop, "IDL:DemoObject:1.0", "1.2", HOST, PORT, KEY, KEYLEN); // retrieve information about object IiopObjectGetHost(hIiop, sHost); nPort := IiopObjectGetPort(hIiop); IiopObjectGetKey(hIiop, sKey); IiopObjectGetInterface(hIiop, sInterface); IiopObjectRelease(hIiop); end TMain;
AnyDemo.bdf
You can find the sample script(s) here: <Public documents>\Silk Performer <version>\Samples\Corba