GRPC C++  1.0.0
Public Member Functions | Friends
grpc::Channel Class Reference

Channels represent a connection to an endpoint. Created by CreateChannel. More...

#include <channel.h>

Public Member Functions

 ~Channel ()
 
grpc_connectivity_state GetState (bool try_to_connect) GRPC_OVERRIDE
 Get the current channel state. More...
 
- Public Member Functions inherited from grpc::ChannelInterface
virtual ~ChannelInterface ()
 
template<typename T >
void NotifyOnStateChange (grpc_connectivity_state last_observed, T deadline, CompletionQueue *cq, void *tag)
 Return the tag on cq when the channel state is changed or deadline expires. More...
 
template<typename T >
bool WaitForStateChange (grpc_connectivity_state last_observed, T deadline)
 Blocking wait for channel state change or deadline expiration. More...
 
template<typename T >
bool WaitForConnected (T deadline)
 Wait for this channel to be connected. More...
 
- Public Member Functions inherited from grpc::CallHook
virtual ~CallHook ()
 

Friends

template<class InputMessage , class OutputMessage >
Status BlockingUnaryCall (ChannelInterface *channel, const RpcMethod &method, ClientContext *context, const InputMessage &request, OutputMessage *result)
 
std::shared_ptr< ChannelCreateChannelInternal (const grpc::string &host, grpc_channel *c_channel)
 

Detailed Description

Channels represent a connection to an endpoint. Created by CreateChannel.

Constructor & Destructor Documentation

grpc::Channel::~Channel ( )

Member Function Documentation

grpc_connectivity_state grpc::Channel::GetState ( bool  try_to_connect)
virtual

Get the current channel state.

If the channel is in IDLE and try_to_connect is set to true, try to connect.

Implements grpc::ChannelInterface.

Friends And Related Function Documentation

template<class InputMessage , class OutputMessage >
Status BlockingUnaryCall ( ChannelInterface channel,
const RpcMethod method,
ClientContext context,
const InputMessage &  request,
OutputMessage *  result 
)
friend
std::shared_ptr<Channel> CreateChannelInternal ( const grpc::string host,
grpc_channel c_channel 
)
friend

The documentation for this class was generated from the following file: