Function read


#include <src/uvw/stream.h>

void read()


Starts reading data from an incoming stream.

A DataEvent event will be emitted several times until there is no more data to read or stop() is called.
An EndEvent event will be emitted when there is no more data to read.


Lines 230-232 in src/uvw/stream.h.

void read() {
    this->invoke(&uv_read_start, this->template get<uv_stream_t>(), &this->allocCallback, &readCallback);

Add Discussion as Guest

Log in