Go to the documentation of this file.
28 "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n" \
29 "\x00\x00\x00\x04\x00\x00\x00\x00\x00" \
30 "\x00\x00\xc9\x01\x04\x00\x00\x00\x01"
33 "\x10\x05:path\x08/foo/bar" \
34 "\x10\x07:scheme\x04http" \
35 "\x10\x07:method\x04POST" \
36 "\x10\x0a:authority\x09localhost" \
40 "\x10\x14grpc-accept-encoding\x15" \
41 "deflate,identity,gzip" \
42 "\x10\x02te\x08trailers" \
43 "\x10\x0auser-agent\"bad-client grpc-c/0.12.0.0 (linux)"
45 #define PFX_STR_UNUSUAL \
46 "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n" \
47 "\x00\x00\x00\x04\x00\x00\x00\x00\x00" \
48 "\x00\x00\xf4\x01\x04\x00\x00\x00\x01"
51 "\x10\x05:path\x08/foo/bar" \
52 "\x10\x07:scheme\x04http" \
53 "\x10\x07:method\x04POST" \
54 "\x10\x04host\x09localhost" \
57 "application/grpc+this-is-valid" \
58 "\x10\x14grpc-accept-encoding\x15identity,deflate,gzip" \
59 "\x10\x02te\x08trailers" \
60 "\x10\x0auser-agent\"bad-client grpc-c/0.12.0.0 (linux)" \
61 "\x10\x0cgrpc-timeout\x03" \
63 "\x10\x0cgrpc-timeout\x02" \
66 #define PFX_STR_UNUSUAL2 \
67 "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n" \
68 "\x00\x00\x00\x04\x00\x00\x00\x00\x00" \
69 "\x00\x00\xf4\x01\x04\x00\x00\x00\x01"
72 "\x10\x05:path\x08/foo/bar" \
73 "\x10\x07:scheme\x04http" \
74 "\x10\x07:method\x04POST" \
75 "\x10\x04host\x09localhost" \
78 "application/grpc;this-is-valid" \
79 "\x10\x14grpc-accept-encoding\x15identity,deflate,gzip" \
80 "\x10\x02te\x08trailers" \
81 "\x10\x0auser-agent\"bad-client grpc-c/0.12.0.0 (linux)" \
82 "\x10\x0cgrpc-timeout\x03" \
84 "\x10\x0cgrpc-timeout\x02" \
87 static void*
tag(
intptr_t t) {
return reinterpret_cast<void*
>(t); }
124 int main(
int argc,
char** argv) {
136 "\x00\x00\x05\x00\x00\x00\x00\x00\x01"
137 "\x34\x00\x00\x00\x00",
142 PFX_STR "\x00\x00\x00\x00\x02\x00\x00\x00\x01", 0);
145 PFX_STR "\x00\x00\x01\x08\x00\x00\x00\x00\x01", 0);
148 PFX_STR "\x00\x00\x00\x08\x10\x00\x00\x00\x01", 0);
153 "\x00\x00\x04\x08\x00\x00\x00\x00\x01"
158 PFX_STR "\x00\x00\x04\x07\x00\x00\x00\x00\x00", 0);
161 PFX_STR "\x00\x01\x12\x07\x00\x00\x00\x00\x00",
165 PFX_STR "\x00\x00\x01\x03\x00\x00\x00\x00\x01", 0);
168 PFX_STR "\x00\x00\x00\x03\x10\x00\x00\x00\x01", 0);
GRPCAPI void grpc_call_details_destroy(grpc_call_details *details)
GRPCAPI void grpc_call_details_init(grpc_call_details *details)
int main(int argc, char **argv)
GRPCAPI void grpc_metadata_array_destroy(grpc_metadata_array *array)
GRPCAPI grpc_call_error grpc_server_request_call(grpc_server *server, grpc_call **call, grpc_call_details *details, grpc_metadata_array *request_metadata, grpc_completion_queue *cq_bound_to_call, grpc_completion_queue *cq_for_notification, void *tag_new)
GRPCAPI void grpc_call_unref(grpc_call *call)
gpr_timespec grpc_timeout_milliseconds_to_deadline(int64_t time_ms)
void cq_verifier_destroy(cq_verifier *v)
struct grpc_call grpc_call
cq_verifier * cq_verifier_create(grpc_completion_queue *cq)
struct grpc_server grpc_server
static grpc_metadata_array request_metadata_recv
static void * tag(intptr_t t)
#define CQ_EXPECT_COMPLETION(v, tag, success)
#define GRPC_BAD_CLIENT_DISCONNECT
GRPCAPI grpc_event grpc_completion_queue_next(grpc_completion_queue *cq, gpr_timespec deadline, void *reserved)
void cq_verify(cq_verifier *v, int timeout_sec)
#define GRPC_RUN_BAD_CLIENT_TEST(server_validator, client_validator, payload, flags)
GRPCAPI void grpc_init(void)
static Server * FromC(grpc_server *c_type)
GPRAPI int grpc_slice_str_cmp(grpc_slice a, const char *b)
static void verifier(grpc_server *server, grpc_completion_queue *cq, void *)
static void failure_verifier(grpc_server *server, grpc_completion_queue *cq, void *)
GRPCAPI void grpc_shutdown(void)
static grpc_completion_queue * cq
static grpc_call_details call_details
GRPCAPI void grpc_metadata_array_init(grpc_metadata_array *array)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:12