| 246 | } |
| 247 | |
| 248 | void ipc_client::trigger(int nMsg, void* data, int dlen) |
| 249 | { |
| 250 | std::list<int>::iterator it = messages_.begin(); |
| 251 | |
| 252 | // ����Ϣ�Ƿ��Ѿ��������Ѿ�ע�����Ϣ������ |
| 253 | for (; it != messages_.end(); ++it) { |
| 254 | if (*it == nMsg) { |
| 255 | on_message(nMsg, data, dlen); |
| 256 | return; |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | logger_warn("unknown msg: %d", nMsg); |
| 261 | } |
| 262 | |
| 263 | bool ipc_client::read_callback(char* data, int len) |
| 264 | { |
no test coverage detected