websWriteBlock GoAhead WebServer API GoAhead EMF

Synopsis

Write a block of data to the user's browser.

Prototype

 #include "webs.h" 

 int websWriteBlock(webs_t wp, char_t *buf, int len); 

Parameters

wp Web server connection handle.
buf Buffer containing data to write to the browser.
len Number of characters to write.

Description

The websWriteBlock procedure writes a block of data back to the user's browser. It can be used within both ASP procedures and Form procedures. Data will be immediately flushed to the user's browser. (If UNICODE is turned on, buf is expected to contain unicoded strings. See websWriteBlockData for writing ASCII data in a Unicode environment.)

Return Value

The number of bytes actually written.

Example

 websWriteBlock(wp, buf, sizeof(buf)); 

Stability Classification

Stable.

See Also

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