Macros | Functions | Variables
window_overflow.cc File Reference
#include <string.h>
#include <grpc/grpc.h>
#include <grpc/support/alloc.h>
#include "src/core/lib/surface/server.h"
#include "test/core/bad_client/bad_client.h"
Include dependency graph for window_overflow.cc:

Go to the source code of this file.

Macros

#define FRAME_SIZE   (MESSAGES_PER_FRAME * 5)
 
#define MAX_FRAME_SIZE   16384
 
#define MESSAGES_PER_FRAME   (MAX_FRAME_SIZE / 5)
 
#define NUM_FRAMES   (SEND_SIZE / FRAME_SIZE + 1)
 
#define PFX_STR
 
#define SEND_SIZE   (4 * 1024 * 1024)
 

Functions

static void addbuf (const void *data, size_t len)
 
int main (int argc, char **argv)
 
static void verifier (grpc_server *server, grpc_completion_queue *cq, void *)
 

Variables

char * g_buffer
 
size_t g_cap = 0
 
size_t g_count = 0
 

Macro Definition Documentation

◆ FRAME_SIZE

#define FRAME_SIZE   (MESSAGES_PER_FRAME * 5)

◆ MAX_FRAME_SIZE

#define MAX_FRAME_SIZE   16384

◆ MESSAGES_PER_FRAME

#define MESSAGES_PER_FRAME   (MAX_FRAME_SIZE / 5)

◆ NUM_FRAMES

#define NUM_FRAMES   (SEND_SIZE / FRAME_SIZE + 1)

◆ PFX_STR

#define PFX_STR
Value:
"\x00\x00\x00\x04\x01\x00\x00\x00\x00" \
"\x00\x00\xc9\x01\x04\x00\x00\x00\x01" /* headers: generated from \
simple_request.headers in this \
directory */ \
"\x10\x05:path\x08/foo/bar" \
"\x10\x07:scheme\x04http" \
"\x10\x07:method\x04POST" \
"\x10\x0a:authority\x09localhost" \
"\x10\x0c" \
"content-type\x10" \
"application/grpc" \
"\x10\x14grpc-accept-encoding\x15" \
"deflate,identity,gzip" \
"\x10\x02te\x08trailers" \
"\x10\x0auser-agent\"bad-client grpc-c/0.12.0.0 (linux)"

Definition at line 27 of file window_overflow.cc.

◆ SEND_SIZE

#define SEND_SIZE   (4 * 1024 * 1024)

Function Documentation

◆ addbuf()

static void addbuf ( const void *  data,
size_t  len 
)
static

Definition at line 55 of file window_overflow.cc.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 64 of file window_overflow.cc.

◆ verifier()

static void verifier ( grpc_server server,
grpc_completion_queue cq,
void *   
)
static

Definition at line 42 of file window_overflow.cc.

Variable Documentation

◆ g_buffer

char* g_buffer

Definition at line 51 of file window_overflow.cc.

◆ g_cap

size_t g_cap = 0

Definition at line 52 of file window_overflow.cc.

◆ g_count

size_t g_count = 0

Definition at line 53 of file window_overflow.cc.



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