Manages inbound receives over an io_uring‐backed socket.
Synopsis
Declared in <folly/io/async/IoUringRecv.h>
class IoUringRecvHandle
: public DelayedDestruction
Base Classes
Name |
Description |
DelayedDestruction is a helper class to ensure objects are not deleted while they still have functions executing in a higher stack frame. |
Types
Name |
Description |
Helper class to allow DelayedDestruction classes to be used with std::shared_ptr. |
|
Classes should create a DestructorGuard object on the stack in any function that may invoke callback functions. |
|
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
Name |
Description |
A future that resolves to a received buffer. |
|
An optional pending read, empty when no read is outstanding. |
|
Owning pointer type that respects DelayedDestruction semantics. |
Member Functions
Name |
Description |
|
Deleted copy assignment operator. |
Cancels any outstanding receive. |
|
|
destroy() requests destruction of the object. |
Detaches the handle from its current EventBase. |
|
Delivers any reads that have already completed. |
|
Returns whether destruction has been requested but deferred. |
|
Submits a receive request to the io_uring ring. |
|
Updates the event flags the handle is registered for. |
Static Member Functions
Protected Member Functions
Name |
Description |
Get the number of DestructorGuards currently protecting this object. |
|
|
Implement onDelayedDestroy in subclasses. onDelayedDestroy() is invoked when the object is potentially being destroyed. |
Created with MrDocs