1 #ifndef JBUS_LISTENER_HPP 2 #define JBUS_LISTENER_HPP 18 std::thread m_listenerThread;
19 std::mutex m_queueLock;
20 std::queue<std::unique_ptr<Endpoint>> m_endpointQueue;
21 bool m_running =
false;
23 static const uint32_t DataPort = 0xd6ba;
24 static const uint32_t ClockPort = 0xc10c;
37 std::unique_ptr<Endpoint>
accept();
44 #endif // JBUS_LISTENER_HPP Definition: Listener.hpp:14
void start()
Start listener thread.
Definition: Socket.hpp:103
std::unique_ptr< Endpoint > accept()
Pop jbus::Endpoint off Listener's queue.
void stop()
Request stop of listener thread and block until joined.