folly::IoUringSendHandle

Manages a single outbound send over an io_uring-backed socket.

Synopsis

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

class IoUringSendHandle
    : public DelayedDestruction

Base Classes

NameDescription
DelayedDestructionDelayedDestruction is a helper class to ensure objects are not deleted while they still have functions executing in a higher stack frame.

Types

NameDescription
Destructor Helper class to allow DelayedDestruction classes to be used with std::shared_ptr.
DestructorGuard Classes should create a DestructorGuard object on the stack in any function that may invoke callback functions.
IntrusivePtr This smart pointer is a convenient way to manage a concrete DelayedDestructorBase child. It can replace the equivalent raw pointer and provide automatic memory management.

Type Aliases

NameDescription
UniquePtr Owning pointer type that respects DelayedDestruction semantics.
VecResFlags A list of per-buffer send results paired with their flags.

Member Functions

NameDescription
operator= [deleted]Deleted copy assignment operator.
destroy [virtual]destroy() requests destruction of the object.
detachEventBase Detaches the handle from its current EventBase.
empty Reports whether there are no pending send requests.
failAllWrites Fails all pending writes with the given exception.
failWrite Fails the current write with the given exception.
getDestroyPending Returns whether destruction has been requested but deferred.
update Updates the event flags the handle is registered for.
write Queues a buffer to be sent on the socket.

Static Member Functions

NameDescription
clone Creates a new send handle that takes over the state of another.
create Creates a send handle bound to the given socket.

Protected Member Functions

NameDescription
getDestructorGuardCount Get the number of DestructorGuards currently protecting this object.
onDelayedDestroy [virtual]Implement onDelayedDestroy in subclasses. onDelayedDestroy() is invoked when the object is potentially being destroyed.