Sends an IIOP Request Message. Depending on the specified message type, it is possible to wait until this function receives an IIOP Reply Message from the server.
IIOP.bdh
IiopRequest( in hIiop : number, in sRequest : string, in nFlag : number optional, in nId : number optional): boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
hIiop | Handle to a CORBA object |
sRequest | Name of the requested operation |
nFlag |
Specifies the request message variant sent to the server (optional). Possible values are:
This parameter may be combined with the following flag:
This parameter may be combined with the following flag:
This parameter may be combined with one of the following flags:
This parameter may be combined with one of the following flags:
|
nId |
Identification number for this request (optional). 注: This parameter
affects the function's behavior only if nFlag is set to
IIOP_NON_BLOCKING.
If an identification number is associated with a request, the IiopWaitForReply function can be used to wait for a reply from the request. Exceptional cases:
|
dcltrans transaction TRequest const HOST := "192.168.20.21"; // server PORT := 1052; // port KEY := "...\h00"; // key KEYLEN := 4; // key length var hIiop : number; // handle to a CORBA object nSum : number; begin IiopSetMaxGiopVersion("1.0"); IiopSetByteOrder(IIOP_BIG_ENDIAN); // retrieve handle to server IiopObjectCreate(hIiop, "IDL:DemoObject:1.0", "1.2", HOST, PORT, KEY,KEYLEN); // call request "Print" IiopRequest(hIiop, "Print", IIOP_ONEWAY | IIOP_ADDR_PROFILE); IiopObjectRelease(hIiop); end TRequest;