Classes | Functions | Variables
interop_server.cc File Reference
#include <fstream>
#include <memory>
#include <sstream>
#include <thread>
#include "absl/flags/flag.h"
#include <grpc/grpc.h>
#include <grpc/support/log.h>
#include <grpc/support/time.h>
#include <grpcpp/security/server_credentials.h>
#include <grpcpp/server.h>
#include <grpcpp/server_builder.h>
#include <grpcpp/server_context.h>
#include "src/core/lib/gpr/string.h"
#include "src/proto/grpc/testing/empty.pb.h"
#include "src/proto/grpc/testing/messages.pb.h"
#include "src/proto/grpc/testing/test.grpc.pb.h"
#include "test/cpp/interop/server_helper.h"
#include "test/cpp/util/test_config.h"
Include dependency graph for interop_server.cc:

Go to the source code of this file.

Classes

class  TestServiceImpl
 

Functions

 ABSL_FLAG (bool, use_alts, false, "Whether to use alts. Enable alts will disable tls.")
 
 ABSL_FLAG (bool, use_tls, false, "Whether to use tls.")
 
 ABSL_FLAG (int32_t, max_send_message_size, -1, "The maximum send message size.")
 
 ABSL_FLAG (int32_t, port, 0, "Server port.")
 
 ABSL_FLAG (std::string, custom_credentials_type, "", "User provided credentials type.")
 
bool CheckExpectedCompression (const ServerContext &context, const bool compression_expected)
 
void MaybeEchoMetadata (ServerContext *context)
 
bool SetPayload (int size, Payload *payload)
 

Variables

const char kEchoInitialMetadataKey [] = "x-grpc-test-echo-initial"
 
const char kEchoTrailingBinMetadataKey [] = "x-grpc-test-echo-trailing-bin"
 
const char kEchoUserAgentKey [] = "x-grpc-test-echo-useragent"
 

Function Documentation

◆ ABSL_FLAG() [1/5]

ABSL_FLAG ( bool  ,
use_alts  ,
false  ,
"Whether to use alts. Enable alts will disable tls."   
)

◆ ABSL_FLAG() [2/5]

ABSL_FLAG ( bool  ,
use_tls  ,
false  ,
"Whether to use tls."   
)

◆ ABSL_FLAG() [3/5]

ABSL_FLAG ( int32_t  ,
max_send_message_size  ,
1,
"The maximum send message size."   
)

◆ ABSL_FLAG() [4/5]

ABSL_FLAG ( int32_t  ,
port  ,
,
"Server port."   
)

◆ ABSL_FLAG() [5/5]

ABSL_FLAG ( std::string  ,
custom_credentials_type  ,
""  ,
"User provided credentials type."   
)

◆ CheckExpectedCompression()

bool CheckExpectedCompression ( const ServerContext context,
const bool  compression_expected 
)

Definition at line 108 of file interop_server.cc.

◆ MaybeEchoMetadata()

void MaybeEchoMetadata ( ServerContext context)

Definition at line 72 of file interop_server.cc.

◆ SetPayload()

bool SetPayload ( int  size,
Payload *  payload 
)

Definition at line 102 of file interop_server.cc.

Variable Documentation

◆ kEchoInitialMetadataKey

const char kEchoInitialMetadataKey[] = "x-grpc-test-echo-initial"

Definition at line 68 of file interop_server.cc.

◆ kEchoTrailingBinMetadataKey

const char kEchoTrailingBinMetadataKey[] = "x-grpc-test-echo-trailing-bin"

Definition at line 69 of file interop_server.cc.

◆ kEchoUserAgentKey

const char kEchoUserAgentKey[] = "x-grpc-test-echo-useragent"

Definition at line 70 of file interop_server.cc.



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