Rev 1598 | Rev 1959 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1598 | Rev 1642 | ||
|---|---|---|---|
| Line 27... | Line 27... | ||
| 27 | 27 | ||
| 28 | #include "logging/Logger.h" |
28 | #include "logging/Logger.h" |
| 29 | #include "broker/Subscriber.h" |
29 | #include "broker/Subscriber.h" |
| 30 | #include "net/Subscriber.h" |
30 | #include "net/Subscriber.h" |
| 31 | #include "net/types.h" |
31 | #include "net/types.h" |
| 32 | #include " |
32 | #include "common/Byteset.h" |
| 33 | #include "timer/Manager.h" |
33 | #include "timer/Manager.h" |
| 34 | 34 | ||
| 35 | namespace atom { |
35 | namespace atom { |
| 36 | namespace can { |
36 | namespace can { |
| 37 | 37 | ||
| Line 46... | Line 46... | ||
| 46 | private: |
46 | private: |
| 47 | net::ClientId client_id_; |
47 | net::ClientId client_id_; |
| 48 | net::Protocol protocol_; |
48 | net::Protocol protocol_; |
| 49 | std::string address_; |
49 | std::string address_; |
| 50 | unsigned int port_or_baud_; |
50 | unsigned int port_or_baud_; |
| 51 |
|
51 | common::Byteset buffer_; |
| 52 | timer::TimerId timer_id_; |
52 | timer::TimerId timer_id_; |
| 53 | 53 | ||
| 54 | void SlotOnMessageHandler(broker::Message::Pointer message); |
54 | void SlotOnMessageHandler(broker::Message::Pointer message); |
| 55 | 55 | ||
| 56 | void SlotOnTimeout(timer::TimerId timer_id); |
56 | void SlotOnTimeout(timer::TimerId timer_id); |
| 57 | 57 | ||
| 58 | void SlotOnNewStateHandler(net::ClientId client_id, net::ServerId server_id, net::ClientState client_state); |
58 | void SlotOnNewStateHandler(net::ClientId client_id, net::ServerId server_id, net::ClientState client_state); |
| 59 | void SlotOnNewDataHandler(net::ClientId client_id, net::ServerId server_id, |
59 | void SlotOnNewDataHandler(net::ClientId client_id, net::ServerId server_id, common::Byteset data); |
| 60 | void SlotOnTimeoutHandler(timer::TimerId timer_id); |
60 | void SlotOnTimeoutHandler(timer::TimerId timer_id); |
| 61 | 61 | ||
| 62 | void ProcessBuffer(); |
62 | void ProcessBuffer(); |
| 63 | 63 | ||
| 64 | logging::Logger LOG; |
64 | logging::Logger LOG; |