| 30 | } |
| 31 | |
| 32 | erpc_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 | |
| 55 | void SimpleServer::stop(void) |
| 56 | { |
no test coverage detected