|
GRPC C++
1.26.0
|
#include <handshaker.h>
Public Member Functions | |
| HandshakeManager () | |
| ~HandshakeManager () | |
| void | AddToPendingMgrList (HandshakeManager **head) |
| Add mgr to the server side list of all pending handshake managers, the list starts with *head. More... | |
| void | RemoveFromPendingMgrList (HandshakeManager **head) |
| Remove mgr from the server side list of all pending handshake managers. More... | |
| void | ShutdownAllPending (grpc_error *why) |
| Shutdown all pending handshake managers starting at head on the server side. More... | |
| void | Add (RefCountedPtr< Handshaker > handshaker) |
| Adds a handshaker to the handshake manager. More... | |
| void | Shutdown (grpc_error *why) |
| Shuts down the handshake manager (e.g., to clean up when the operation is aborted in the middle). More... | |
| void | DoHandshake (grpc_endpoint *endpoint, const grpc_channel_args *channel_args, grpc_millis deadline, grpc_tcp_server_acceptor *acceptor, grpc_iomgr_cb_func on_handshake_done, void *user_data) |
| Invokes handshakers in the order they were added. More... | |
Public Member Functions inherited from grpc_core::RefCounted< HandshakeManager > | |
| ~RefCounted ()=default | |
| RefCountedPtr< HandshakeManager > | Ref () GRPC_MUST_USE_RESULT |
| RefCountedPtr< HandshakeManager > | Ref (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT |
| void | Unref () |
| void | Unref (const DebugLocation &location, const char *reason) |
| bool | RefIfNonZero () |
| bool | RefIfNonZero (const DebugLocation &location, const char *reason) |
| RefCounted (const RefCounted &)=delete | |
| RefCounted & | operator= (const RefCounted &)=delete |
Public Member Functions inherited from grpc_core::PolymorphicRefCount | |
| virtual | ~PolymorphicRefCount ()=default |
Additional Inherited Members | |
Protected Member Functions inherited from grpc_core::RefCounted< HandshakeManager > | |
| RefCounted (TraceFlagT *trace_flag=nullptr, intptr_t initial_refcount=1) | |
| grpc_core::HandshakeManager::HandshakeManager | ( | ) |
| grpc_core::HandshakeManager::~HandshakeManager | ( | ) |
| void grpc_core::HandshakeManager::Add | ( | RefCountedPtr< Handshaker > | handshaker | ) |
Adds a handshaker to the handshake manager.
Takes ownership of handshaker.
| void grpc_core::HandshakeManager::AddToPendingMgrList | ( | HandshakeManager ** | head | ) |
Add mgr to the server side list of all pending handshake managers, the list starts with *head.
| void grpc_core::HandshakeManager::DoHandshake | ( | grpc_endpoint * | endpoint, |
| const grpc_channel_args * | channel_args, | ||
| grpc_millis | 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.
| void grpc_core::HandshakeManager::RemoveFromPendingMgrList | ( | HandshakeManager ** | head | ) |
Remove mgr from the server side list of all pending handshake managers.
| void grpc_core::HandshakeManager::Shutdown | ( | grpc_error * | why | ) |
Shuts down the handshake manager (e.g., to clean up when the operation is aborted in the middle).
| void grpc_core::HandshakeManager::ShutdownAllPending | ( | grpc_error * | why | ) |
Shutdown all pending handshake managers starting at head on the server side.
Not thread-safe. Caller needs to synchronize.