CResponse::flush

The CResponse::flush function send buffered output immediately.

int flush();



Return Type

int
Upon successful completion, zero is returned. Otherwise, a value of non-zero is returned.


Parameters

None.


Remarks

This function sends buffered output immediately. This function will cause a run-time error or be ignored if the Buffering has not been set to true.


Differences Between Ch-CGI and Ch-ASP

In Ch-CGI, the output is not buffered by default. In Ch-ASP, the output is buffered by default.


See Also

CResponse, CResponse::getBuffer, CResponse::setBuffer

Example