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

Method poll

erpc_c/infra/erpc_simple_server.cpp:32–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32erpc_status_t SimpleServer::poll(void)
33{
34 erpc_status_t err;
35
36 if (m_isServerOn)
37 {
38 if (m_transport->hasMessage() == true)
39 {
40 err = runInternal();
41 }
42 else
43 {
44 err = kErpcStatus_Success;
45 }
46 }
47 else
48 {
49 err = kErpcStatus_ServerIsDown;
50 }
51
52 return err;
53}
54
55void SimpleServer::stop(void)
56{

Callers 3

erpc_server_pollFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

hasMessageMethod · 0.45

Tested by

no test coverage detected