IiopSetFirewall Function

Action

Sets the default or an object's firewall handling mode.

Include file

Iiop.bdh

Syntax

IiopSetFirewall( in hIiop : number,                 in nMode : number ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
hIiop Handle to a CORBA object
nMode

Addressing mode. Must be one of:

  • IIOP_FIREWALL_IGNORE. Firewall information of IORs (if present) is ignored.

  • IIOP_FIREWALL_USE_ALWAYS. Firewall information of IORs (if present) is used to connect to a remote object.

Example

dcltrans
  transaction TFirewallMode
  begin
    // general settings
    IiopSetMaxGiopVersion("1.2");
    IiopSetByteOrder(IIOP_BIG_ENDIAN);
    IiopSetFirewall(0, IIOP_FIREWALL_USE_ALWAYS); // set default

     // retrieve handle to server
    IiopObjectCreate(hIiop, "IDL:DemoObject:1.0", "1.2", HOST, PORT, KEY, KEYLEN);
    IiopSetFirewall(hIiop, IIOP_FIREWALL_IGNORE);
    IiopRequest(hIiop, "ARequest");
    IiopObjectRelease(hIiop);
  end TFirewallMode;