Sends an IIOP LocateRequest message, waits until the server sends a LocateReply message, and binds the BDL object handle to the new object key and host address of the received IOR.
Sends an IIOP LocateRequest message, waits until the server sends a LocateReply message, and binds the BDL object handle to the new object key and host address of the received IOR.
IIOP.bdh
IiopLocateRequest( in hIiop : number, in nFlags : number optional ): boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
hIiop | Handle to a CORBA object |
nFlags |
Specifies the location request message variant sent to the server (optional). Possible values are:
This parameter may be combined with one of the following flags:
This parameter may be combined with one of the following flags:
|
dcltrans transaction TLocateRequest const HOST := "192.168.20.21"; // server PORT := 1052; // port KEY := "...\h00"; // key KEYLEN := 4; // key length var hIiop : number; // handle to CORBA object nSum : number; begin IiopSetMaxGiopVersion("1.2"); IiopSetByteOrder(IIOP_BIG_ENDIAN); // retrieve handle to server IiopObjectCreate(hIiop, "IDL:DemoObject:1.0", "1.2", HOST, PORT, KEY, KEYLEN); IiopLocateRequest(hIiop); // call request "Print" IiopRequest(hIiop, "Print", IIOP_ADDR_REFERENCE | IIOP_USE_V12); IiopObjectRelease(hIiop); end TLocateRequest;