Skip to content

onData(onDataCB, arg)

OverEasy edited this page Feb 20, 2018 · 3 revisions

onData(onDataCB, arg)

Set a callback for when new data is received.

the callback is defined as:

typedef std::function<void(void*, asyncHTTPrequest*, size_t available)> onDataCB;

arg is type void*