Go to the documentation of this file.
23 #include "absl/flags/flag.h"
30 #include "src/proto/grpc/testing/echo.grpc.pb.h"
35 using grpc::testing::EchoRequest;
36 using grpc::testing::EchoResponse;
41 class ServiceImpl final :
public grpc::testing::EchoTestService::Service {
64 std::cout <<
"Server listening on " <<
absl::GetFlag(FLAGS_address)
71 int main(
int argc,
char** argv) {
void InitTest(int *argc, char ***argv, bool remove_flags)
A builder class for the creation and startup of grpc::Server instances.
int main(int argc, char **argv)
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPR_PRINT_FORMAT_CHECK(4
static const Status & OK
An OK pre-defined instance.
def server(thread_pool, handlers=None, interceptors=None, options=None, maximum_concurrent_rpcs=None, compression=None, xds=False)
ABSL_MUST_USE_RESULT T GetFlag(const absl::Flag< T > &flag)
ABSL_FLAG(std::string, address, "", "Address to bind to")
Status BidiStream(ServerContext *, ServerReaderWriter< EchoResponse, EchoRequest > *stream) override
std::shared_ptr< ServerCredentials > InsecureServerCredentials()
__attribute__((deprecated("Please use GRPCProtoMethod."))) @interface ProtoMethod NSString * service
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:55