Sets the default addressing mode or specifies an addressing mode for a particular object.
Iiop.bdh
IiopSetAddressingMode( in hIiop : number, in nMode : number ): boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
hIiop | Handle to a CORBA object. |
nMode |
Addressing mode. Must be one of:
|
dcltrans transaction TAddressingMode begin // general settings IiopSetMaxGiopVersion("1.2"); IiopSetByteOrder(IIOP_BIG_ENDIAN); IiopSetAddressingMode(0, IIOP_ADDR_KEY); // set default addressing mode // retrieve handle to server IiopObjectCreate(hIiop, "IDL:DemoObject:1.0", "1.2", HOST, PORT, KEY, KEYLEN); IiopSetAddressingMode(hIiop, IIOP_ADDR_PROFILE); // set addressing mode for hIiop // the IIOP request message resulting from the following IiopRequest call // will contain a profile as target address information. IiopRequest(hIiop, "ARequest"); IiopObjectRelease(hIiop); end TAddressingMode;