Classes | Typedefs | Functions | Variables
rb_server.c File Reference
#include <ruby/ruby.h>
#include "rb_server.h"
#include "rb_byte_buffer.h"
#include "rb_call.h"
#include "rb_channel_args.h"
#include "rb_completion_queue.h"
#include "rb_grpc.h"
#include "rb_grpc_imports.generated.h"
#include "rb_server_credentials.h"
#include "rb_xds_server_credentials.h"
#include <grpc/grpc.h>
#include <grpc/grpc_security.h>
#include <grpc/support/atm.h>
#include <grpc/support/log.h>
Include dependency graph for rb_server.c:

Go to the source code of this file.

Classes

struct  grpc_rb_server
 
struct  request_call_stack
 

Typedefs

typedef struct grpc_rb_server grpc_rb_server
 
typedef struct request_call_stack request_call_stack
 

Functions

grpc_servergrpc_rb_get_wrapped_server (VALUE v)
 
static VALUE grpc_rb_server_add_http2_port (VALUE self, VALUE port, VALUE rb_creds)
 
static VALUE grpc_rb_server_alloc (VALUE cls)
 
static VALUE grpc_rb_server_destroy (VALUE self)
 
static void grpc_rb_server_free (void *p)
 
static void grpc_rb_server_free_internal (void *p)
 
static VALUE grpc_rb_server_init (VALUE self, VALUE channel_args)
 
static void grpc_rb_server_maybe_destroy (grpc_rb_server *server)
 
static void grpc_rb_server_maybe_shutdown_and_notify (grpc_rb_server *server, gpr_timespec deadline)
 
static VALUE grpc_rb_server_request_call (VALUE self)
 
static VALUE grpc_rb_server_shutdown_and_notify (VALUE self, VALUE timeout)
 
static VALUE grpc_rb_server_start (VALUE self)
 
static void grpc_request_call_stack_cleanup (request_call_stack *st)
 
static void grpc_request_call_stack_init (request_call_stack *st)
 
void Init_grpc_server ()
 

Variables

static VALUE grpc_rb_cServer = Qnil
 
static const rb_data_type_t grpc_rb_server_data_type
 
static ID id_at
 
static VALUE id_insecure_server
 

Typedef Documentation

◆ grpc_rb_server

◆ request_call_stack

Function Documentation

◆ grpc_rb_get_wrapped_server()

grpc_server* grpc_rb_get_wrapped_server ( VALUE  v)

Definition at line 384 of file rb_server.c.

◆ grpc_rb_server_add_http2_port()

static VALUE grpc_rb_server_add_http2_port ( VALUE  self,
VALUE  port,
VALUE  rb_creds 
)
static

Definition at line 308 of file rb_server.c.

◆ grpc_rb_server_alloc()

static VALUE grpc_rb_server_alloc ( VALUE  cls)
static

Definition at line 132 of file rb_server.c.

◆ grpc_rb_server_destroy()

static VALUE grpc_rb_server_destroy ( VALUE  self)
static

Definition at line 289 of file rb_server.c.

◆ grpc_rb_server_free()

static void grpc_rb_server_free ( void *  p)
static

Definition at line 109 of file rb_server.c.

◆ grpc_rb_server_free_internal()

static void grpc_rb_server_free_internal ( void *  p)
static

Definition at line 91 of file rb_server.c.

◆ grpc_rb_server_init()

static VALUE grpc_rb_server_init ( VALUE  self,
VALUE  channel_args 
)
static

Definition at line 146 of file rb_server.c.

◆ grpc_rb_server_maybe_destroy()

static void grpc_rb_server_maybe_destroy ( grpc_rb_server server)
static

Definition at line 78 of file rb_server.c.

◆ grpc_rb_server_maybe_shutdown_and_notify()

static void grpc_rb_server_maybe_shutdown_and_notify ( grpc_rb_server server,
gpr_timespec  deadline 
)
static

Definition at line 55 of file rb_server.c.

◆ grpc_rb_server_request_call()

static VALUE grpc_rb_server_request_call ( VALUE  self)
static

Definition at line 198 of file rb_server.c.

◆ grpc_rb_server_shutdown_and_notify()

static VALUE grpc_rb_server_shutdown_and_notify ( VALUE  self,
VALUE  timeout 
)
static

Definition at line 262 of file rb_server.c.

◆ grpc_rb_server_start()

static VALUE grpc_rb_server_start ( VALUE  self)
static

Definition at line 249 of file rb_server.c.

◆ grpc_request_call_stack_cleanup()

static void grpc_request_call_stack_cleanup ( request_call_stack st)
static

Definition at line 189 of file rb_server.c.

◆ grpc_request_call_stack_init()

static void grpc_request_call_stack_init ( request_call_stack st)
static

Definition at line 181 of file rb_server.c.

◆ Init_grpc_server()

void Init_grpc_server ( )

Definition at line 357 of file rb_server.c.

Variable Documentation

◆ grpc_rb_cServer

VALUE grpc_rb_cServer = Qnil
static

Definition at line 38 of file rb_server.c.

◆ grpc_rb_server_data_type

const rb_data_type_t grpc_rb_server_data_type
static
Initial value:
= {
"grpc_server",
{NULL, NULL}},
NULL,
NULL,
}

Definition at line 114 of file rb_server.c.

◆ id_at

ID id_at
static

Definition at line 41 of file rb_server.c.

◆ id_insecure_server

VALUE id_insecure_server
static

Definition at line 44 of file rb_server.c.

GRPC_RB_MEMSIZE_UNAVAILABLE
#define GRPC_RB_MEMSIZE_UNAVAILABLE
Definition: rb_grpc.h:57
GRPC_RB_GC_NOT_MARKED
#define GRPC_RB_GC_NOT_MARKED
Definition: rb_grpc.h:48
grpc_rb_server_free
static void grpc_rb_server_free(void *p)
Definition: rb_server.c:109


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