MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / _process_request

Method _process_request

erpc_python/erpc/server.py:73–84  ·  view source on GitHub ↗
(self, codec)

Source from the content-addressed store, hash-verified

71 pass
72
73 def _process_request(self, codec):
74 info = codec.start_read_message()
75 if info.type not in [MessageType.kInvocationMessage, MessageType.kOnewayMessage]:
76 raise RequestError("invalid type of incoming request")
77
78 service = self.get_service_with_id(info.service)
79 if service is None:
80 raise RequestError("invalid service ID (%d)" % info.service)
81 service.handle_invocation(info.request, info.sequence, codec)
82
83 if info.type is MessageType.kOnewayMessage:
84 codec.reset()

Callers 1

_receive_requestMethod · 0.80

Calls 5

get_service_with_idMethod · 0.95
RequestErrorClass · 0.90
handle_invocationMethod · 0.80
resetMethod · 0.65
start_read_messageMethod · 0.45

Tested by

no test coverage detected