websValid GoAhead WebServer API GoAhead EMF

Synopsis

Determine if the web server connection handle is still open.

Prototype

 #include "webs.h" 

 int websValid(webs_t wp); 

Parameters

wp Web server connection handle.

Description

The websValid procedure returns TRUE if the web server connection handle is valid. This is useful for code which runs after an ASP or Form procedure that may close the connection by calling websError.

Return Value

Pointer to a statically allocated string. Do not call bfree.

Example

 
if (websValid(wp)) { websWrite(wp, "More output");
 } 

Stability Classification

Stable.

See Also

Active Server Pages, GoForms, websDone, websFooter, websHeader, websWrite