MCPcopy Create free account
hub / github.com/Tencent/mars / pingServer

Method pingServer

samples/Windows/Business/MarsWrapper.cpp:78–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void 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
93void MarsWrapper::setChatMsgObserver(ChatMsgObserver* _observer)

Callers 1

OnBnClickedTestmarsMethod · 0.80

Calls 1

startTaskMethod · 0.45

Tested by

no test coverage detected