IiopObjectGetInterface Function

Action

Retrieves the repository id of an object's interface.

Include file

IIOP.bdh

Syntax

IiopObjectGetInterface( in  hIiop      : number,
                        out sInterface : string,
                        in  nSize      : number optional ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
hIiop Handle to a CORBA object.
sInterface String receiving the repository id of the specified object interface.
nSize Size of the string receiving the object interface (optional).

Example

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;