Rev 1956 | Rev 1986 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1956 | Rev 1959 | ||
|---|---|---|---|
| Line 117... | Line 117... | ||
| 117 | 117 | ||
| 118 | net::Manager::Instance()->SendToAll(this->server_id_, common::Byteset(line)); |
118 | net::Manager::Instance()->SendToAll(this->server_id_, common::Byteset(line)); |
| 119 | } |
119 | } |
| 120 | } |
120 | } |
| 121 | 121 | ||
| 122 | void Monitor::SlotOnNewDataHandler(net:: |
122 | void Monitor::SlotOnNewDataHandler(net::SocketId client_id, net::SocketId server_id, common::Byteset data) |
| 123 | { |
123 | { |
| 124 | if (server_id != this->server_id_) |
124 | if (server_id != this->server_id_) |
| 125 | { |
125 | { |
| 126 | return; |
126 | return; |
| 127 | } |
127 | } |
| Line 137... | Line 137... | ||
| 137 | LOG.Info("Client " + boost::lexical_cast<std::string>(client_id) + " has requested to be disconnected."); |
137 | LOG.Info("Client " + boost::lexical_cast<std::string>(client_id) + " has requested to be disconnected."); |
| 138 | net::Manager::Instance()->Disconnect(client_id); |
138 | net::Manager::Instance()->Disconnect(client_id); |
| 139 | } |
139 | } |
| 140 | } |
140 | } |
| 141 | 141 | ||
| 142 | void Monitor::SlotOnNewStateHandler(net:: |
142 | void Monitor::SlotOnNewStateHandler(net::SocketId client_id, net::SocketId server_id, net::ClientState client_state) |
| 143 | { |
143 | { |
| 144 | if (server_id != this->server_id_) |
144 | if (server_id != this->server_id_) |
| 145 | { |
145 | { |
| 146 | return; |
146 | return; |
| 147 | } |
147 | } |