websWriteBlockData GoAhead WebServer API GoAhead EMF

Synopsis

Write a block of raw ASCII or binary data to the user's browser

Prototype

#include "webs.h"

int websWriteBlockData(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 bytes of data to write

Description

The websWriteBlockData procedure writes a block of raw 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. (See websWriteBlock if Unicode strings need to be written.)

Return Value

The number of bytes actually written.

Example

websWriteBlockData(wp, buf, sizeof(buf));

See Also

Active Server Pages, Forms, websDone, websFooter, websHeader, websWrite, websWriteBlock