Rev 1598 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1598 | Rev 1642 | ||
|---|---|---|---|
| Line 22... | Line 22... | ||
| 22 | #define NET_SUBSCRIBER_H |
22 | #define NET_SUBSCRIBER_H |
| 23 | 23 | ||
| 24 | #include <boost/shared_ptr.hpp> |
24 | #include <boost/shared_ptr.hpp> |
| 25 | 25 | ||
| 26 | #include "common/IoService.h" |
26 | #include "common/IoService.h" |
| 27 | #include " |
27 | #include "common/Byteset.h" |
| 28 | 28 | ||
| 29 | #include "types.h" |
29 | #include "types.h" |
| 30 | 30 | ||
| 31 | namespace atom { |
31 | namespace atom { |
| 32 | namespace net { |
32 | namespace net { |
| Line 40... | Line 40... | ||
| 40 | Subscriber(); |
40 | Subscriber(); |
| 41 | virtual ~Subscriber(); |
41 | virtual ~Subscriber(); |
| 42 | 42 | ||
| 43 | protected: |
43 | protected: |
| 44 | virtual void SlotOnNewStateHandler(net::ClientId client_id, net::ServerId server_id, net::ClientState client_state) = 0; |
44 | virtual void SlotOnNewStateHandler(net::ClientId client_id, net::ServerId server_id, net::ClientState client_state) = 0; |
| 45 | virtual void SlotOnNewDataHandler(net::ClientId client_id, net::ServerId server_id, |
45 | virtual void SlotOnNewDataHandler(net::ClientId client_id, net::ServerId server_id, common::Byteset data) = 0; |
| 46 | 46 | ||
| 47 | private: |
47 | private: |
| 48 | void SlotOnNewState(net::ClientId client_id, net::ServerId server_id, net::ClientState client_state); |
48 | void SlotOnNewState(net::ClientId client_id, net::ServerId server_id, net::ClientState client_state); |
| 49 | void SlotOnNewData(net::ClientId client_id, net::ServerId server_id, |
49 | void SlotOnNewData(net::ClientId client_id, net::ServerId server_id, common::Byteset data); |
| 50 | }; |
50 | }; |
| 51 | 51 | ||
| 52 | 52 | ||
| 53 | 53 | ||
| 54 | }; // namespace net |
54 | }; // namespace net |