class Channel

Defined at line 54 of file ../../third_party/grpc-migrating/src/include/grpcpp/channel.h

Channels represent a connection to an endpoint. Created by

Public Methods

void ~Channel ()
grpc_connectivity_state GetState (bool try_to_connect)

Get the current channel state. If the channel is in IDLE and

is set to true, try to connect.

std::string GetLoadBalancingPolicyName ()

Returns the LB policy name, or the empty string if not yet available.

std::string GetServiceConfigJSON ()

Returns the service config in JSON form, or the empty string if

not available.

Friends

class InterceptedChannel
shared_ptr Channel (const std::string & host, grpc_channel * c_channel, std::vector<std::unique_ptr<grpc::experimental::ClientInterceptorFactoryInterface>> interceptor_creators)
void Channel (Channel * channel)
class ChannelTestPeer
template <class InputMessageclass OutputMessage>
class BlockingUnaryCallImpl