Namespaces | Functions
chttp2_connector.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/ext/transport/chttp2/client/chttp2_connector.h"
#include <stdint.h>
#include <string>
#include "absl/container/inlined_vector.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include <grpc/grpc.h>
#include <grpc/grpc_posix.h>
#include <grpc/grpc_security.h>
#include <grpc/impl/codegen/grpc_types.h>
#include <grpc/status.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/sync.h>
#include "src/core/ext/filters/client_channel/client_channel.h"
#include "src/core/ext/filters/client_channel/client_channel_factory.h"
#include "src/core/ext/filters/client_channel/connector.h"
#include "src/core/ext/filters/client_channel/subchannel.h"
#include "src/core/ext/transport/chttp2/transport/chttp2_transport.h"
#include "src/core/lib/address_utils/sockaddr_utils.h"
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/channel/channel_args_preconditioning.h"
#include "src/core/lib/channel/channelz.h"
#include "src/core/lib/config/core_configuration.h"
#include "src/core/lib/debug/trace.h"
#include "src/core/lib/gprpp/debug_location.h"
#include "src/core/lib/gprpp/orphanable.h"
#include "src/core/lib/gprpp/unique_type_name.h"
#include "src/core/lib/iomgr/endpoint.h"
#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/core/lib/iomgr/resolved_address.h"
#include "src/core/lib/resolver/resolver_registry.h"
#include "src/core/lib/security/credentials/credentials.h"
#include "src/core/lib/security/credentials/insecure/insecure_credentials.h"
#include "src/core/lib/security/security_connector/security_connector.h"
#include "src/core/lib/slice/slice_internal.h"
#include "src/core/lib/surface/api_trace.h"
#include "src/core/lib/surface/channel.h"
#include "src/core/lib/surface/channel_stack_type.h"
#include "src/core/lib/transport/error_utils.h"
#include "src/core/lib/transport/handshaker.h"
#include "src/core/lib/transport/handshaker_registry.h"
#include "src/core/lib/transport/tcp_connect_handshaker.h"
#include "src/core/lib/transport/transport.h"
#include "src/core/lib/transport/transport_fwd.h"
Include dependency graph for chttp2_connector.cc:

Go to the source code of this file.

Namespaces

 grpc_core
 

Functions

grpc_channelgrpc_channel_create (const char *target, grpc_channel_credentials *creds, const grpc_channel_args *c_args)
 
grpc_channelgrpc_channel_create_from_fd (const char *, int, grpc_channel_credentials *, const grpc_channel_args *)
 

Function Documentation

◆ grpc_channel_create()

grpc_channel* grpc_channel_create ( const char *  target,
grpc_channel_credentials creds,
const grpc_channel_args args 
)

Creates a secure channel using the passed-in credentials. Additional channel level configuration MAY be provided by grpc_channel_args, though the expectation is that most clients will want to simply pass NULL. The user data in 'args' need only live through the invocation of this function. However, if any args of the 'pointer' type are passed, then the referenced vtable must be maintained by the caller until grpc_channel_destroy terminates. See grpc_channel_args definition for more on this.

Definition at line 366 of file chttp2_connector.cc.

◆ grpc_channel_create_from_fd()

grpc_channel* grpc_channel_create_from_fd ( const char *  target,
int  fd,
grpc_channel_credentials creds,
const grpc_channel_args args 
)

Create a secure channel to 'target' using file descriptor 'fd' and passed-in credentials. The 'target' argument will be used to indicate the name for this channel. Note that this API currently only supports insecure channel credentials. Using other types of credentials will result in a failure.

Definition at line 453 of file chttp2_connector.cc.



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