GRPC Core  0.11.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Typedefs | Functions | Variables
connectivity_state.h File Reference
#include <grpc/grpc.h>
#include "src/core/iomgr/iomgr.h"

Go to the source code of this file.

Data Structures

struct  grpc_connectivity_state_watcher
 
struct  grpc_connectivity_state_tracker
 

Typedefs

typedef struct
grpc_connectivity_state_watcher 
grpc_connectivity_state_watcher
 

Functions

void grpc_connectivity_state_init (grpc_connectivity_state_tracker *tracker, grpc_connectivity_state init_state, const char *name)
 
void grpc_connectivity_state_destroy (grpc_connectivity_state_tracker *tracker)
 
void grpc_connectivity_state_set (grpc_connectivity_state_tracker *tracker, grpc_connectivity_state state, const char *reason)
 
void grpc_connectivity_state_set_with_scheduler (grpc_connectivity_state_tracker *tracker, grpc_connectivity_state state, void(*scheduler)(void *arg, grpc_iomgr_closure *closure), void *arg, const char *reason)
 
grpc_connectivity_state grpc_connectivity_state_check (grpc_connectivity_state_tracker *tracker)
 
int grpc_connectivity_state_notify_on_state_change (grpc_connectivity_state_tracker *tracker, grpc_connectivity_state *current, grpc_iomgr_closure *notify)
 Return 1 if the channel should start connecting, 0 otherwise. More...
 

Variables

int grpc_connectivity_state_trace
 

Typedef Documentation

Function Documentation

grpc_connectivity_state grpc_connectivity_state_check ( grpc_connectivity_state_tracker tracker)
void grpc_connectivity_state_destroy ( grpc_connectivity_state_tracker tracker)
void grpc_connectivity_state_init ( grpc_connectivity_state_tracker tracker,
grpc_connectivity_state  init_state,
const char *  name 
)
int grpc_connectivity_state_notify_on_state_change ( grpc_connectivity_state_tracker tracker,
grpc_connectivity_state current,
grpc_iomgr_closure notify 
)

Return 1 if the channel should start connecting, 0 otherwise.

void grpc_connectivity_state_set ( grpc_connectivity_state_tracker tracker,
grpc_connectivity_state  state,
const char *  reason 
)
void grpc_connectivity_state_set_with_scheduler ( grpc_connectivity_state_tracker tracker,
grpc_connectivity_state  state,
void(*)(void *arg, grpc_iomgr_closure *closure)  scheduler,
void *  arg,
const char *  reason 
)

Variable Documentation

int grpc_connectivity_state_trace