IiopObjectGetPort Function

Action

Retrieves the port number used to access a specified CORBA object.

Include file

IIOP.bdh

Syntax

IiopObjectGetPort( in hIiop: number ): number;

Return value

Port number used to access the specified CORBA object

Parameter Description
hIiop Handle to a CORBA object.

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;

Sample scripts

AnyDemo.bdf

You can find the sample script(s) here: <Public documents>\Silk Performer <version>\Samples\Corba