IiopSetProxy Function

Action

Sets a traffic forwarder host where all IIOP traffic is sent to, no matter what the target address in an IOR specifies.

Include file

IIOP.bdh

Syntax

IiopSetProxy(
  in sProxyHost : string,
  in nProxyPort : number ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
sProxyHost Host name where the IIOP traffic forwarder is running. In an empty string is passed, the proxy will be disabled.
nProxyPort Port where the IIOP traffic forwarder is listening. If 0 is specified the proxy will be disabled

Example

dcltrans
  transaction TInit
  begin
    // general settings
    IiopSetMaxGiopVersion("1.2");
    IiopSetByteOrder(IIOP_BIG_ENDIAN);

    if IiopSetProxy("proxy", 5000) then
      writeln("IIOP proxy successfully set");
    end;
  end TInit;

Output

IIOP proxy successfully set