Skip to content

Instantly share code, notes, and snippets.

View danyangz's full-sized avatar

Danyang Zhuo danyangz

View GitHub Profile
@danyangz
danyangz / client.cc
Created December 28, 2019 04:10
Asynchronous gRPC full-duplex streaming example
#include <chrono>
#include <fstream>
#include <grpc/grpc.h>
#include <grpcpp/grpcpp.h>
#include <grpcpp/resource_quota.h>
#include <grpcpp/support/channel_arguments.h>
#include <string>
#include <thread>
#include <unistd.h>