MCPcopy Create free account
hub / github.com/SNAS/openbmp / readerThreadLoop

Method readerThreadLoop

Server/src/bmp/BMPReader.cpp:72–84  ·  view source on GitHub ↗

* Read messages from BMP stream in a loop * * \param [in] run Reference to bool to indicate if loop should continue or not * \param [in] client Client information pointer * \param [in] mbus_ptr The database pointer referencer - DB should be already initialized * * \return true if more to read, false if the connection is done/closed * * \throw (char const *str) message i

Source from the content-addressed store, hash-verified

70 * \throw (char const *str) message indicate error
71 */
72void BMPReader::readerThreadLoop(bool &run, BMPListener::ClientInfo *client, MsgBusInterface *mbus_ptr) {
73 while (run) {
74
75 try {
76 if (not ReadIncomingMsg(client, mbus_ptr))
77 break;
78
79 } catch (char const *str) {
80 run = false;
81 break;
82 }
83 }
84}
85
86/**
87 * Read messages from BMP stream

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected