neuray API Programmer's Manual

mi::http::IData_handler Class Reference

[HTTP server]

Description

A data handler may be added to a connection. It is called every time data is enqueued or printed to the connection. The buffer is passed through all installed data handlers which might replace the buffer by a different buffer. If a data handler returns NULL no data is printed or enqueued to the connection and the handler is uninstalled and released.

Public Member Functions

virtual neuraylib::​IBufferhandle( IConnection* connection, neuraylib::​IBuffer* buffer) =0
Handles data. More...

Member Functions

virtual neuraylib::​IBuffer* mi::​http::​IData_handler::handle( IConnection* connection, neuraylib::​IBuffer* buffer) [pure virtual]

Handles data. The method might change the buffer (by returning a new buffer instance).

Parameters

connection
The connection to which the data handler belongs.
buffer
The original buffer.

Returns

The new, modified buffer (or buffer if there was no modification).