diff options
Diffstat (limited to 'src/lib/server.h')
| -rw-r--r-- | src/lib/server.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/server.h b/src/lib/server.h index 77b51d079..55d107545 100644 --- a/src/lib/server.h +++ b/src/lib/server.h @@ -101,12 +101,28 @@ public: private: void worker_thread (); int process (boost::shared_ptr<Socket> socket); + void broadcast_thread (); + void broadcast_received (); std::vector<boost::thread *> _worker_threads; std::list<boost::shared_ptr<Socket> > _queue; boost::mutex _worker_mutex; boost::condition _worker_condition; boost::shared_ptr<Log> _log; + + struct Broadcast { + + Broadcast () + : thread (0) + , socket (0) + {} + + boost::thread* thread; + boost::asio::ip::udp::socket* socket; + char buffer[64]; + boost::asio::ip::udp::endpoint send_endpoint; + + } _broadcast; }; #endif |
