folly::AsyncSocketObserverInterface::ByteEvent

Structure used to communicate ByteEvents, such as TX and ACK timestamps.

Synopsis

Declared in <folly/io/async/observer/AsyncSocketObserverInterface.h>

struct ByteEvent;

Enums

NameDescription
Type Kind of byte event; values start from 0 to enable indexing in arrays.

Member Functions

NameDescription
ackTimestampRequestedOnWrite For WRITE events, returns if ACK timestamp requested.
schedTimestampRequestedOnWrite For WRITE events, returns if SCHED timestamp requested.
txTimestampRequestedOnWrite For WRITE events, returns if TX timestamp requested.

Data Members

NameDescription
maybeHardwareTs Hardware timestamp for non-WRITE events.
maybeRawBytesTriedToWrite For WRITE events, the number of raw bytes we tried to write.
maybeRawBytesWritten For WRITE events, the number of raw bytes written to the socket.
maybeSoftwareTs Kernel software timestamp for non-WRITE events (CLOCK_REALTIME on Linux).
maybeWriteFlags For WRITE events, the additional WriteFlags passed.
offset Offset of the corresponding byte in the raw byte stream.
ts Socket timestamp, as recorded by the AsyncSocket implementation.
type Kind of this byte event.