Skip to main content
Pigweed's logo Pigweed
code_xml
  1. Home
  2. Reference
  3. C/C++
  4. pw_rpc2
  5. Server
Loading...
Searching...
No Matches
Server

Overview

Register RPC services and accept incoming client connections.

Learn more: Implementing a service

Classes

class  pw::rpc2::ControlFuture
 
class  pw::rpc2::Server
 
class  pw::rpc2::Service
 

Enumerations

enum class  pw::rpc2::MethodType : uint8_t { kUnary = 0 , kServerStreaming = 1 , kClientStreaming = 2 , kBidirectionalStreaming = 3 }
 

Functions

constexpr bool pw::rpc2::HasServerStream (MethodType type)
 True if the server streams responses: server and bidirectional streaming.
 
constexpr bool pw::rpc2::HasClientStream (MethodType type)
 True if the client streams requests: client and bidirectional streaming.
 

Enumeration Type Documentation

◆ MethodType

enum class pw::rpc2::MethodType : uint8_t
strong

The type of an RPC method.

Bit 0 is set if the server streams responses, and bit 1 if the client streams requests.