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