folly::coro::TransportCallbackBase

Common base for all transport callbacks.

Synopsis

Declared in <folly/io/coro/TransportCallbackBase.h>

class TransportCallbackBase;

Member Functions

NameDescription
TransportCallbackBase [constructor]Constructs a callback base bound to transport.
~TransportCallbackBase [destructor] [virtual]Destroys the callback base.
error Returns the stored error, if any.
post Signals completion to the waiting coroutine.
wait Waits for the callback to complete, honoring cancellation.

Protected Member Functions

NameDescription
storeException Stores ex as the callback's error, preserving SSL error details.

Protected Data Members

NameDescription
baton_ Baton used to notify the other side of completion.
error_ Wraps any AsyncTransport error.
transport_ Transport whose state the callback modifies, e.g. to cancel callbacks.

Derived Classes

NameDescription
ConnectCallback Handles the connect operation for an AsyncSocketTransport.
ReadCallback Handles data reads for an AsyncTransport.
WriteCallback Handles data writes for an AsyncTransport.