Sets the port number used to access a specified CORBA object.
IIOP.bdh
IiopObjectSetPort( in hIiop : number, in nPort : number ): boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
hIiop | Handle to a CORBA object |
nPort | New port number used to access the specified CORBA object |
dcltrans transaction TMain const HOST := "192.168.20.21"; // server PORT := 1052; // port KEY := "...\h00"; // key KEYLEN := 4; // key length var hIiop: number; begin IiopSetMaxGiopVersion("1.2"); IiopSetByteOrder(IIOP_BIG_ENDIAN); IiopObjectCreate(hIiop, "IDL:DemoObject:1.0", "1.2", HOST, PORT, KEY, KEYLEN); // set new port number used to access object IiopObjectSetPort(hIiop, 1500); IiopObjectRelease(hIiop); end TMain;