Queues a zero‐copy receive request on the backend.

Synopsis

Declared in <folly/io/async/EventBaseBackendBase.h>

virtual
void
queueRecvZc(
    int fd,
    void* buf,
    unsigned long nbytes,
    RecvZcCallback&& callback);

Parameters

Name

Description

fd

The file descriptor to receive from.

buf

The buffer that receives the data.

nbytes

The maximum number of bytes to receive.

callback

The callback invoked with the byte count.

Created with MrDocs