Flags given by the application for write* calls.

Synopsis

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

enum class WriteFlags : uint32_t;

Members

Name

Description

NONE

No flags set.

CORK

Whether to delay the output until a subsequent non‐corked write.

EOR

Set MSG_EOR flag when writing the last byte of the buffer to the socket.

WRITE_SHUTDOWN

Indicates that only the write side of socket should be shutdown.

WRITE_MSG_ZEROCOPY

Use msg zerocopy if allowed.

TIMESTAMP_TX

Request timestamp when entire buffer transmitted by the NIC.

TIMESTAMP_ACK

Request timestamp when entire buffer ACKed by remote endpoint.

TIMESTAMP_SCHED

Request timestamp when entire buffer has entered packet scheduler.

TIMESTAMP_WRITE

Request timestamp when entire buffer has been written to system socket.

Non-Member Functions

Name

Description

isSet

Tests whether all flags of b are set in a.

operator&

Computes the intersection of two flag sets.

operator&=

Intersects a with b in place.

operator|

Computes the union of two flag sets.

operator|=

Unions b into a in place.

operator~

Computes the complement of a flag set.

unSet

Clears the flags of b from a.

Created with MrDocs