GRPC C++  1.39.1
Data Structures | Macros | Functions | Variables
tcp_custom.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/lib/iomgr/port.h"
#include <limits.h>
#include <string.h>
#include <grpc/slice_buffer.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/string_util.h>
#include "src/core/lib/address_utils/sockaddr_utils.h"
#include "src/core/lib/iomgr/error.h"
#include "src/core/lib/iomgr/iomgr_custom.h"
#include "src/core/lib/iomgr/resource_quota.h"
#include "src/core/lib/iomgr/tcp_client.h"
#include "src/core/lib/iomgr/tcp_custom.h"
#include "src/core/lib/iomgr/tcp_server.h"
#include "src/core/lib/slice/slice_internal.h"
#include "src/core/lib/slice/slice_string_helpers.h"

Data Structures

struct  custom_tcp_endpoint
 

Macros

#define GRPC_TCP_DEFAULT_READ_SLICE_SIZE   8192
 
#define TCP_UNREF(tcp, reason)   tcp_unref((tcp), (reason), __FILE__, __LINE__)
 
#define TCP_REF(tcp, reason)   tcp_ref((tcp), (reason), __FILE__, __LINE__)
 

Functions

void grpc_custom_endpoint_init (grpc_socket_vtable *impl)
 
grpc_endpointcustom_tcp_endpoint_create (grpc_custom_socket *socket, grpc_resource_quota *resource_quota, const char *peer_string)
 

Variables

grpc_core::TraceFlag grpc_tcp_trace
 
grpc_socket_vtablegrpc_custom_socket_vtable = nullptr
 
grpc_tcp_server_vtable custom_tcp_server_vtable
 
grpc_tcp_client_vtable custom_tcp_client_vtable
 

Macro Definition Documentation

◆ GRPC_TCP_DEFAULT_READ_SLICE_SIZE

#define GRPC_TCP_DEFAULT_READ_SLICE_SIZE   8192

◆ TCP_REF

#define TCP_REF (   tcp,
  reason 
)    tcp_ref((tcp), (reason), __FILE__, __LINE__)

◆ TCP_UNREF

#define TCP_UNREF (   tcp,
  reason 
)    tcp_unref((tcp), (reason), __FILE__, __LINE__)

Function Documentation

◆ custom_tcp_endpoint_create()

grpc_endpoint* custom_tcp_endpoint_create ( grpc_custom_socket socket,
grpc_resource_quota resource_quota,
const char *  peer_string 
)

◆ grpc_custom_endpoint_init()

void grpc_custom_endpoint_init ( grpc_socket_vtable impl)

Variable Documentation

◆ custom_tcp_client_vtable

grpc_tcp_client_vtable custom_tcp_client_vtable
extern

◆ custom_tcp_server_vtable

grpc_tcp_server_vtable custom_tcp_server_vtable
extern

◆ grpc_custom_socket_vtable

grpc_socket_vtable* grpc_custom_socket_vtable = nullptr

◆ grpc_tcp_trace

grpc_core::TraceFlag grpc_tcp_trace
extern