WebGetStandardHost Function

Action

Gets the replacement name for the predefined host name standardhost.

Include file

WebAPI.bdh

Syntax

WebGetStandardHost( out sHost   : string, 
                    in  nMaxLen : number optional, 
                    out nPort   : number optional): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
sHost String buffer receiving the current name of the standardhost.
nMaxLen The maximum length of the receive buffer sHost (optional).
nPort Variable receiving the current port number of the standardhost (optional).

Example

dcltrans 
  transaction TInit 
  var
    sHost : string;
    nPort : number; 
  begin 
    WebGetStandardHost(sHost,
STRING_COMPLETE, nPort); 
    write("Standardhost: "); write(sHost); 
    write(":"); write(nPort); writeln; 
  end TInit;