Network System 0.1.1
High-performance modular networking library for scalable client-server applications
Loading...
Searching...
No Matches
grpc.h File Reference

Unified gRPC protocol header. More...

Include dependency graph for grpc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  kcenon::network::protocols::grpc
 gRPC protocol implementation
 

Detailed Description

Unified gRPC protocol header.

This is the main entry point for using gRPC functionality in network_system. It includes all necessary gRPC components:

Usage:

// Create and configure gRPC server
grpc_server server;
server.register_unary_method("/myservice.MyService/Echo", handler);
server.start(50051);
// Create and use gRPC client
grpc_client client("localhost:50051");
client.connect();
auto result = client.call_raw("/myservice.MyService/Echo", request);
gRPC client for making RPC calls
Definition client.h:115
gRPC server for handling RPC requests
Definition server.h:273
Unified gRPC protocol header.
gRPC protocol implementation
Definition client.h:34
Note
For backward compatibility, individual headers can still be included directly, but using this unified header is recommended.
See also
docs/adr/ADR-001-grpc-official-library-wrapper.md

Definition in file grpc.h.