Rev 1959 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1959 | Rev 1986 | ||
|---|---|---|---|
| Line 20... | Line 20... | ||
| 20 | 20 | ||
| 21 | #ifndef VM_PLUGIN_CONSOLE_H |
21 | #ifndef VM_PLUGIN_CONSOLE_H |
| 22 | #define VM_PLUGIN_CONSOLE_H |
22 | #define VM_PLUGIN_CONSOLE_H |
| 23 | 23 | ||
| 24 | #include <boost/shared_ptr.hpp> |
24 | #include <boost/shared_ptr.hpp> |
| - | 25 | #include <set> |
|
| 25 | 26 | ||
| 26 | #include "logging/Logger.h" |
27 | #include "logging/Logger.h" |
| 27 | #include "net/Subscriber.h" |
28 | #include "net/Subscriber.h" |
| 28 | #include "net/types.h" |
29 | #include "net/types.h" |
| 29 | #include "common/Byteset.h" |
30 | #include "common/Byteset.h" |
| Line 46... | Line 47... | ||
| 46 | void CallOutput(unsigned int request_id, std::string output); |
47 | void CallOutput(unsigned int request_id, std::string output); |
| 47 | 48 | ||
| 48 | private: |
49 | private: |
| 49 | net::SocketId server_id_; |
50 | net::SocketId server_id_; |
| 50 | static net::SocketId current_client_id_; |
51 | static net::SocketId current_client_id_; |
| - | 52 | std::set<net::SocketId> clients_; |
|
| 51 | 53 | ||
| 52 | void SlotOnNewState(net::SocketId |
54 | void SlotOnNewState(net::SocketId id, net::ClientState client_state); |
| - | 55 | void SlotOnNewClient(net::SocketId id, net::SocketId server_id); |
|
| 53 | void SlotOnNewData(net::SocketId |
56 | void SlotOnNewData(net::SocketId id, common::Byteset data); |
| 54 | 57 | ||
| 55 | void SlotOnNewStateHandler(net::SocketId |
58 | void SlotOnNewStateHandler(net::SocketId id, net::ClientState client_state); |
| - | 59 | void SlotOnNewClientHandler(net::SocketId id, net::SocketId server_id); |
|
| 56 | void SlotOnNewDataHandler(net::SocketId |
60 | void SlotOnNewDataHandler(net::SocketId id, common::Byteset data); |
| 57 | 61 | ||
| 58 | static logging::Logger LOG; |
62 | static logging::Logger LOG; |
| 59 | 63 | ||
| 60 | static Value Export_PromptRequest(const v8::Arguments& args); |
64 | static Value Export_PromptRequest(const v8::Arguments& args); |
| 61 | static Value Export_AutoCompleteResponse(const v8::Arguments& args); |
65 | static Value Export_AutoCompleteResponse(const v8::Arguments& args); |