Functions | Variables
alts_shared_resource.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/tsi/alts/handshaker/alts_shared_resource.h"
#include <grpc/support/log.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/tsi/alts/handshaker/alts_handshaker_client.h"
Include dependency graph for alts_shared_resource.cc:

Go to the source code of this file.

Functions

alts_shared_resource_dedicatedgrpc_alts_get_shared_resource_dedicated (void)
 
void grpc_alts_shared_resource_dedicated_init ()
 
void grpc_alts_shared_resource_dedicated_shutdown ()
 
void grpc_alts_shared_resource_dedicated_start (const char *handshaker_service_url)
 
static void thread_worker (void *)
 

Variables

static alts_shared_resource_dedicated g_alts_resource_dedicated
 

Function Documentation

◆ grpc_alts_get_shared_resource_dedicated()

alts_shared_resource_dedicated* grpc_alts_get_shared_resource_dedicated ( void  )

Definition at line 30 of file alts_shared_resource.cc.

◆ grpc_alts_shared_resource_dedicated_init()

void grpc_alts_shared_resource_dedicated_init ( )

This method initializes the alts_shared_resource_dedicated object shared by all TSI handshakes. The application is responsible for invoking the API after calling grpc_init();

Definition at line 50 of file alts_shared_resource.cc.

◆ grpc_alts_shared_resource_dedicated_shutdown()

void grpc_alts_shared_resource_dedicated_shutdown ( )

This method destroys the alts_shared_resource_dedicated object shared by all TSI handshakes. The application is responsible for invoking the API before calling grpc_shutdown().

Definition at line 80 of file alts_shared_resource.cc.

◆ grpc_alts_shared_resource_dedicated_start()

void grpc_alts_shared_resource_dedicated_start ( const char *  handshaker_service_url)

This method populates various fields of the alts_shared_resource_dedicated object shared by all TSI handshakes and start the dedicated thread. The API will be invoked by the caller in a lazy manner. That is, it will get invoked when ALTS TSI handshake occurs for the first time.

Definition at line 55 of file alts_shared_resource.cc.

◆ thread_worker()

static void thread_worker ( void *  )
static

Definition at line 34 of file alts_shared_resource.cc.

Variable Documentation

◆ g_alts_resource_dedicated

alts_shared_resource_dedicated g_alts_resource_dedicated
static

Definition at line 28 of file alts_shared_resource.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:02