Namespaces | Functions
istio_echo_server.cc File Reference
#include <algorithm>
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <deque>
#include <map>
#include <memory>
#include <mutex>
#include <set>
#include <sstream>
#include <string>
#include <thread>
#include <vector>
#include "absl/algorithm/container.h"
#include "absl/flags/flag.h"
#include "absl/strings/str_format.h"
#include "absl/strings/str_join.h"
#include "absl/strings/str_split.h"
#include <grpcpp/ext/admin_services.h>
#include <grpcpp/ext/proto_server_reflection_plugin.h>
#include <grpcpp/grpcpp.h>
#include <grpcpp/server.h>
#include <grpcpp/server_builder.h>
#include <grpcpp/server_context.h>
#include <grpcpp/support/string_ref.h>
#include <grpcpp/xds_server_builder.h>
#include "src/core/lib/channel/status_util.h"
#include "src/core/lib/gpr/env.h"
#include "src/core/lib/gprpp/host_port.h"
#include "src/core/lib/iomgr/gethostname.h"
#include "src/proto/grpc/testing/istio_echo.pb.h"
#include "test/core/util/test_config.h"
#include "test/cpp/interop/istio_echo_server_lib.h"
#include "test/cpp/util/test_config.h"
Include dependency graph for istio_echo_server.cc:

Go to the source code of this file.

Namespaces

 grpc
 
 grpc::testing
 

Functions

 ABSL_FLAG (std::string, cluster, "", "Cluster where this server is deployed")
 
 ABSL_FLAG (std::string, crt, "", "gRPC TLS server-side certificate")
 
 ABSL_FLAG (std::string, disable_alpn, "", "disable ALPN negotiation")
 
 ABSL_FLAG (std::string, forwarding_address, "0.0.0.0:7072", "Forwarding address for unhandled protocols")
 
 ABSL_FLAG (std::string, istio_version, "", "Istio sidecar version")
 
 ABSL_FLAG (std::string, key, "", "gRPC TLS server-side key")
 
 ABSL_FLAG (std::string, metrics, "", "Metrics port")
 
 ABSL_FLAG (std::string, uds, "", "HTTP server on unix domain socket")
 
 ABSL_FLAG (std::vector< std::string >, bind_ip, std::vector< std::string >({}), "Ports that are bound to INSTANCE_IP rather than wildcard IP.")
 
 ABSL_FLAG (std::vector< std::string >, bind_localhost, std::vector< std::string >({}), "Ports that are bound to localhost rather than wildcard IP.")
 
 ABSL_FLAG (std::vector< std::string >, grpc, std::vector< std::string >({"7070"}), "GRPC ports")
 
 ABSL_FLAG (std::vector< std::string >, port, std::vector< std::string >({"8080"}), "HTTP/1.1 ports")
 
 ABSL_FLAG (std::vector< std::string >, server_first, std::vector< std::string >({}), "Ports that are server first. These must be defined as tcp.")
 
 ABSL_FLAG (std::vector< std::string >, tcp, std::vector< std::string >({"9090"}), "TCP ports")
 
 ABSL_FLAG (std::vector< std::string >, tls, std::vector< std::string >({}), "Ports that are using TLS. These must be defined as http/grpc/tcp.")
 
 ABSL_FLAG (std::vector< std::string >, xds_grpc_server, std::vector< std::string >({}), "Ports that should rely on XDS configuration to serve")
 
int main (int argc, char **argv)
 

Function Documentation

◆ ABSL_FLAG() [1/16]

ABSL_FLAG ( std::string  ,
cluster  ,
""  ,
"Cluster where this server is deployed"   
)

◆ ABSL_FLAG() [2/16]

ABSL_FLAG ( std::string  ,
crt  ,
""  ,
"gRPC TLS server-side certificate"   
)

◆ ABSL_FLAG() [3/16]

ABSL_FLAG ( std::string  ,
disable_alpn  ,
""  ,
"disable ALPN negotiation"   
)

◆ ABSL_FLAG() [4/16]

ABSL_FLAG ( std::string  ,
forwarding_address  ,
"0.0.0.0:7072"  ,
"Forwarding address for unhandled protocols"   
)

◆ ABSL_FLAG() [5/16]

ABSL_FLAG ( std::string  ,
istio_version  ,
""  ,
"Istio sidecar version  
)

◆ ABSL_FLAG() [6/16]

ABSL_FLAG ( std::string  ,
key  ,
""  ,
"gRPC TLS server-side key  
)

◆ ABSL_FLAG() [7/16]

ABSL_FLAG ( std::string  ,
metrics  ,
""  ,
"Metrics port  
)

◆ ABSL_FLAG() [8/16]

ABSL_FLAG ( std::string  ,
uds  ,
""  ,
"HTTP server on unix domain socket"   
)

◆ ABSL_FLAG() [9/16]

ABSL_FLAG ( std::vector< std::string >  ,
bind_ip  ,
std::vector< std::string >  {},
"Ports that are bound to INSTANCE_IP rather than wildcard IP."   
)

◆ ABSL_FLAG() [10/16]

ABSL_FLAG ( std::vector< std::string >  ,
bind_localhost  ,
std::vector< std::string >  {},
"Ports that are bound to localhost rather than wildcard IP."   
)

◆ ABSL_FLAG() [11/16]

ABSL_FLAG ( std::vector< std::string >  ,
grpc  ,
std::vector< std::string >  {"7070"},
"GRPC ports"   
)

◆ ABSL_FLAG() [12/16]

ABSL_FLAG ( std::vector< std::string >  ,
port  ,
std::vector< std::string >  {"8080"},
"HTTP/1.1 ports"   
)

◆ ABSL_FLAG() [13/16]

ABSL_FLAG ( std::vector< std::string >  ,
server_first  ,
std::vector< std::string >  {},
"Ports that are server first. These must be defined as tcp."   
)

◆ ABSL_FLAG() [14/16]

ABSL_FLAG ( std::vector< std::string >  ,
tcp  ,
std::vector< std::string >  {"9090"},
"TCP ports"   
)

◆ ABSL_FLAG() [15/16]

ABSL_FLAG ( std::vector< std::string >  ,
tls  ,
std::vector< std::string >  {},
"Ports that are using TLS. These must be defined as http/grpc/tcp."   
)

◆ ABSL_FLAG() [16/16]

ABSL_FLAG ( std::vector< std::string >  ,
xds_grpc_server  ,
std::vector< std::string >  {},
"Ports that should rely on XDS configuration to serve"   
)

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 151 of file istio_echo_server.cc.



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