Defines the interface of an object. The interface will be part of the IOR whenever the object is passed to a function as a parameter.
IIOP.bdh
IiopObjectSetInterface( in hIiop : number, in sInterface : string ): boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
hIiop | Handle to a CORBA object |
sInterface | Repository ID of the object's interface |
const LOCALHOST := "192.55.21.188"; DAEMONPORT := 1570; REMOTEHOST := "192.55.21.192"; var ghDaemon, ghRemoteServer, ghCallback: number; dcltrans transaction TMain begin IiopSetMaxGiopVersion("1.2"); IiopSetByteOrder(IIOP_BIG_ENDIAN); ghDaemon := IiopOrbixDaemonBind(LOCALHOST, DAEMONPORT); ghRemoteServer := IiopOrbixServerBind(ghDaemon, REMOTEHOST, "remote", "","remote"); // set up callback object IiopObjectCreate(hIiop, "IDL:DemoObject:1.0", "1.2", LOCALHOST,0, "\h3A5C6D69746368656C6C2E7365677565" "\h6175743A2D3838393233363930343A30" "\h3A3A4946523A6C6F63616C00", 44); IiopObjectSetInterface(ghCallback, "IDL:local:1.0"); IiopObjectListen(ghCallback, "callback_func"); IiopSetObject(ghRemoteServer, ghCallback); IiopRequest(ghRemoteServer, "func",IIOP_ONEWAY); // enable the user to answer callbacks. wait(20.0); IiopObjectRelease(ghRemoteServer); IiopObjectRelease(ghCallback); end TMain;
Callback.bdf
You can find the sample script(s) here: <Public documents>\Silk Performer <version>\Samples\Corba