Lines Matching refs:RPC
11 ``pw_rpc`` can generate services which encode/decode RPC requests and responses
47 All examples in this document use the following RPC service definition.
84 // Implementations of the service's RPC methods; see below.
87 Unary RPC
89 A unary RPC is implemented as a function which takes in the RPC's request struct
98 Server streaming RPC
100 A server streaming RPC receives the client's request message alongside a
118 Closes the stream and sends back the RPC's overall status to the client.
122 Closes the stream and sends back the RPC's overall status to the client only
130 avoid accidentally closing it and ending the RPC.
132 Client streaming RPC
136 Bidirectional streaming RPC
151 Service clients are instantiated with a reference to the RPC client through
178 the type of RPC. Each method returns a client call object which stores the
179 context of the ongoing RPC call. For more information on call objects, refer to
180 the :ref:`core RPC docs <module-pw_rpc-making-calls>`.
197 RPC callbacks are invoked synchronously from ``Client::ProcessPacket``.
203 Unary RPC
205 A unary RPC call takes the request struct and a callback to invoke when a
206 response is received. The callback receives the RPC's status and response
218 Server streaming RPC
220 A server streaming RPC call takes the initial request struct and two callbacks.
234 Client streaming RPC
238 Bidirectional streaming RPC
244 The following example demonstrates how to call an RPC method using a pw_protobuf
269 // The RPC will remain active as long as `call` is alive.