PA_GetWebServerInfo

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_GetWebServerInfo (webServerProcess; TCPport)

ParameterTypeDescription
webServerProcess long *Process number of Web listener process
TCPportlong *TCP Port used by the Web Service

Description

The routine PA_GetWebServerInfo returns in *webServerProcess and *TCPport information on the current 4th Dimension Web Services.

If 4D Web Services are not running, *webServerProcess is set to 0.

Example

Check if Web Services are running.

   char WebServicesAreOn()
   {
      long   webProcess, tcpPort;
      PA_GetWebServerInfo(&webProcess, &tcpPort);
      return (char) webProcess != 0 ? 1 : 0;
   }

See Also

PA_SetWebTCPport.

Error Handling

PA_GetLastError always returns eER_NoErr


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next