Rev 1314 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1314 | Rev 1315 | ||
|---|---|---|---|
| Line 10... | Line 10... | ||
| 10 | 10 | ||
| 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 " |
15 | #include "log/Logger.h" |
| 16 | #include "utils/BitBuffer.h" |
16 | #include "utils/BitBuffer.h" |
| 17 | #include "utils/Thread.h" |
17 | #include "utils/Thread.h" |
| 18 | #include "utils/convert.h" |
18 | #include "utils/convert.h" |
| 19 | #include "types.h" |
19 | #include "types.h" |
| 20 | 20 | ||
| Line 46... | Line 46... | ||
| 46 | 46 | ||
| 47 | void run(); |
47 | void run(); |
| 48 | void receiveFrom(); |
48 | void receiveFrom(); |
| 49 | void handleReceiveFrom(const boost::system::error_code& error, size_t bytes_received); |
49 | void handleReceiveFrom(const boost::system::error_code& error, size_t bytes_received); |
| 50 | 50 | ||
| 51 | Logger LOG; |
51 | log::Logger LOG; |
| 52 | OnDataSignal onNewData; |
52 | OnDataSignal onNewData; |
| 53 | 53 | ||
| 54 | enum { MAX_LENGTH = 64 }; |
54 | enum { MAX_LENGTH = 64 }; |
| 55 | 55 | ||
| 56 | boost::asio::io_service myIoService; |
56 | boost::asio::io_service myIoService; |