| 76 | } |
| 77 | |
| 78 | void MarsWrapper::pingServer(const std::string& _name, const std::string& _text, boost::weak_ptr<HelloCGICallback> _callback) |
| 79 | { |
| 80 | HelloCGITask* task = new HelloCGITask(); |
| 81 | task->user_ = _name; |
| 82 | task->text_ = _text; |
| 83 | task->callback_ = _callback; |
| 84 | |
| 85 | task->channel_select_ = ChannelType_All; |
| 86 | task->cmdid_ = com::tencent::mars::sample::proto::CMD_ID_HELLO; |
| 87 | task->cgi_ = "/mars/hello"; |
| 88 | task->host_ = g_host; |
| 89 | NetworkService::Instance().startTask(task); |
| 90 | } |
| 91 | |
| 92 | |
| 93 | void MarsWrapper::setChatMsgObserver(ChatMsgObserver* _observer) |
no test coverage detected