Retrieves the port number used to access a specified CORBA object.
IIOP.bdh
IiopObjectGetPort( in hIiop: number ): number;
Port number used to access the specified CORBA object
Parameter | Description |
---|---|
hIiop | Handle to a CORBA object. |
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