#include <handshaker.h>
Private Member Functions | |
bool | CallNextHandshakerLocked (grpc_error_handle error) |
Static Private Member Functions | |
static void | CallNextHandshakerFn (void *arg, grpc_error_handle error) |
static void | OnTimeoutFn (void *arg, grpc_error_handle error) |
Static Private Attributes | |
static const size_t | HANDSHAKERS_INIT_SIZE = 2 |
Additional Inherited Members | |
![]() | |
using | RefCountedChildType = HandshakeManager |
![]() | |
RefCounted (const char *trace=nullptr, intptr_t initial_refcount=1) | |
Definition at line 98 of file handshaker.h.
grpc_core::HandshakeManager::HandshakeManager | ( | ) |
Definition at line 61 of file src/core/lib/transport/handshaker.cc.
|
override |
Definition at line 74 of file src/core/lib/transport/handshaker.cc.
void grpc_core::HandshakeManager::Add | ( | RefCountedPtr< Handshaker > | handshaker | ) |
Adds a handshaker to the handshake manager. Takes ownership of handshaker.
Definition at line 63 of file src/core/lib/transport/handshaker.cc.
|
staticprivate |
Definition at line 150 of file src/core/lib/transport/handshaker.cc.
|
private |
Definition at line 91 of file src/core/lib/transport/handshaker.cc.
void grpc_core::HandshakeManager::DoHandshake | ( | grpc_endpoint * | endpoint, |
const grpc_channel_args * | channel_args, | ||
Timestamp | deadline, | ||
grpc_tcp_server_acceptor * | acceptor, | ||
grpc_iomgr_cb_func | on_handshake_done, | ||
void * | user_data | ||
) |
Invokes handshakers in the order they were added. Takes ownership of endpoint, and then passes that ownership to the on_handshake_done callback. Does NOT take ownership of channel_args. Instead, makes a copy before invoking the first handshaker. acceptor will be nullptr for client-side handshakers.
When done, invokes on_handshake_done with a HandshakerArgs object as its argument. If the callback is invoked with error != GRPC_ERROR_NONE, then handshaking failed and the handshaker has done the necessary clean-up. Otherwise, the callback takes ownership of the arguments.
Definition at line 174 of file src/core/lib/transport/handshaker.cc.
|
staticprivate |
Definition at line 166 of file src/core/lib/transport/handshaker.cc.
void grpc_core::HandshakeManager::Shutdown | ( | grpc_error_handle | why | ) |
Shuts down the handshake manager (e.g., to clean up when the operation is aborted in the middle).
Definition at line 76 of file src/core/lib/transport/handshaker.cc.
|
private |
Definition at line 149 of file handshaker.h.
|
private |
Definition at line 156 of file handshaker.h.
|
private |
Definition at line 147 of file handshaker.h.
|
private |
Definition at line 151 of file handshaker.h.
|
private |
Definition at line 144 of file handshaker.h.
|
staticprivate |
Definition at line 138 of file handshaker.h.
|
private |
Definition at line 146 of file handshaker.h.
Definition at line 141 of file handshaker.h.
|
private |
Definition at line 140 of file handshaker.h.
|
private |
Definition at line 154 of file handshaker.h.
|
private |
Definition at line 152 of file handshaker.h.