Rev 1309 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1309 | Rev 1311 | ||
|---|---|---|---|
| Line 8... | Line 8... | ||
| 8 | #ifndef UDPSERVER_H_ |
8 | #ifndef UDPSERVER_H_ |
| 9 | #define UDPSERVER_H_ |
9 | #define UDPSERVER_H_ |
| 10 | 10 | ||
| 11 | #include <boost/bind.hpp> |
11 | #include <boost/bind.hpp> |
| 12 | #include <boost/asio.hpp> |
12 | #include <boost/asio.hpp> |
| 13 | #include "Logger.h" |
- | |
| 14 | #include "BitBuffer.h" |
- | |
| 15 | #include "Thread.h" |
- | |
| 16 | #include <boost/signal.hpp> |
13 | #include <boost/signal.hpp> |
| 17 | #include <boost/make_shared.hpp> |
14 | #include <boost/make_shared.hpp> |
| - | 15 | #include "utils/Logger.h" |
|
| - | 16 | #include "utils/BitBuffer.h" |
|
| - | 17 | #include "utils/Thread.h" |
|
| 18 | #include " |
18 | #include "types.h" |
| 19 | 19 | ||
| 20 | namespace atom { |
20 | namespace atom { |
| 21 | namespace utils { |
21 | namespace utils { |
| 22 | 22 | ||
| 23 | using boost::asio::ip::udp; |
23 | using boost::asio::ip::udp; |
| 24 | using namespace |
24 | using namespace utils; |
| 25 | 25 | ||
| 26 | class UdpServer : protected Thread |
26 | class UdpServer : protected Thread |
| 27 | { |
27 | { |
| 28 | typedef boost::signal<void(udp::endpoint & sender, byte_list & bytes)> OnDataSignal; |
28 | typedef boost::signal<void(udp::endpoint & sender, byte_list & bytes)> OnDataSignal; |
| 29 | 29 | ||