Searched refs:RpcPacket (Results 1 – 7 of 7) sorted by relevance
/external/pigweed/pw_rpc/py/tests/ |
D | packets_test.py | 21 from pw_rpc.internal.packet_pb2 import PacketType, RpcPacket 24 _TEST_REQUEST = RpcPacket(type=PacketType.REQUEST, 28 payload=RpcPacket(status=321).SerializeToString()) 34 data = packets.encode_request((1, 2, 3), RpcPacket(status=321)) 35 packet = RpcPacket() 41 response = RpcPacket(type=PacketType.RESPONSE, 45 payload=RpcPacket(status=321).SerializeToString()) 47 data = packets.encode_response((1, 2, 3), RpcPacket(status=321)) 48 packet = RpcPacket() 56 packet = RpcPacket() [all …]
|
D | client_test.py | 25 from pw_rpc.internal.packet_pb2 import PacketType, RpcPacket 171 def _last_packet_sent(self) -> RpcPacket: 172 packet = RpcPacket() 227 RpcPacket(type=PacketType.REQUEST).SerializeToString()), 247 RpcPacket(type=PacketType.CLIENT_ERROR, 264 RpcPacket(type=PacketType.CLIENT_ERROR, 282 RpcPacket(type=PacketType.CLIENT_ERROR,
|
D | callback_client_test.py | 72 self._last_request: packet_pb2.RpcPacket = None 97 (packet_pb2.RpcPacket(type=packet_pb2.PacketType.RESPONSE, 111 (packet_pb2.RpcPacket(type=packet_pb2.PacketType.SERVER_STREAM_END, 124 (packet_pb2.RpcPacket(type=packet_pb2.PacketType.SERVER_ERROR, 191 packet_pb2.RpcPacket(
|
/external/pigweed/pw_rpc/ |
D | packet.cc | 29 RpcPacket::Fields field = in FromBuffer() 30 static_cast<RpcPacket::Fields>(decoder.FieldNumber()); in FromBuffer() 33 case RpcPacket::Fields::TYPE: { in FromBuffer() 40 case RpcPacket::Fields::CHANNEL_ID: in FromBuffer() 44 case RpcPacket::Fields::SERVICE_ID: in FromBuffer() 48 case RpcPacket::Fields::METHOD_ID: in FromBuffer() 52 case RpcPacket::Fields::PAYLOAD: in FromBuffer() 56 case RpcPacket::Fields::STATUS: { in FromBuffer() 74 RpcPacket::Encoder rpc_packet(&encoder); in Encode()
|
/external/pigweed/pw_rpc/py/pw_rpc/ |
D | packets.py | 23 packet = packet_pb2.RpcPacket() 41 return packet_pb2.RpcPacket( 52 return packet_pb2.RpcPacket( 61 return packet_pb2.RpcPacket(type=packet_pb2.PacketType.CLIENT_ERROR, 70 return packet_pb2.RpcPacket(
|
D | client.py | 27 from pw_rpc.internal.packet_pb2 import PacketType, RpcPacket 473 self, packet: RpcPacket, argument
|
/external/pigweed/pw_rpc/internal/ |
D | packet.proto | 50 message RpcPacket { message
|