CHttpServer::OnWriteBody

BOOL OnWriteBody( CHttpServerContext* pCtxt, LPBYTE pbData, LPDWORD dwWrite, DWORD dwReserved = 0 );

Return Value

Zero for a failure, and nonzero for success.

Parameters

pCtxt

A pointer to a CHttpServerContext object

pbData

The data to be written to the client.

dwWrite

The number of bytes to be written to the client.

dwReserved

Reserved for future use; must be 0.

Remarks

Override this function to write data back to the server. MFC will call this function only when all of these conditions are true:

This function writes data back to the client by calling CHttpServerContext::WriteClient. It may make several calls to CHttpServerContext::WriteClient if the CHttpServerContext object has set a chunk size.

CHttpServer OverviewClass MembersHierarchy Chart

See Also   CHttpServerContext::SetChunkSize, CHttpServerContext::GetChunkSize