@@ -255,46 +255,46 @@ bool (*MakesureAuthed)()
255255 return sg_callback->MakesureAuthed ();
256256};
257257
258- // 流量统计
258+ // 流量统计
259259void (*TrafficData)(ssize_t _send, ssize_t _recv)
260260= [](ssize_t _send, ssize_t _recv) {
261261 xassert2 (sg_callback != NULL );
262262 return sg_callback->TrafficData (_send, _recv);
263263};
264264
265- // 底层询问上层该host对应的ip列表
265+ // 底层询问上层该host对应的ip列表
266266std::vector<std::string> (*OnNewDns)(const std::string& host)
267267= [](const std::string& host) {
268268 xassert2 (sg_callback != NULL );
269269 return sg_callback->OnNewDns (host);
270270};
271271
272- // 网络层收到push消息回调
272+ // 网络层收到push消息回调
273273void (*OnPush)(uint64_t _channel_id, uint32_t _cmdid, uint32_t _taskid, const AutoBuffer& _body, const AutoBuffer& _extend)
274274= [](uint64_t _channel_id, uint32_t _cmdid, uint32_t _taskid, const AutoBuffer& _body, const AutoBuffer& _extend) {
275275 xassert2 (sg_callback != NULL );
276276 sg_callback->OnPush (_channel_id, _cmdid, _taskid, _body, _extend);
277277};
278- // 底层获取task要发送的数据
278+ // 底层获取task要发送的数据
279279bool (*Req2Buf)(uint32_t taskid, void * const user_context, AutoBuffer& outbuffer, AutoBuffer& extend, int & error_code, const int channel_select)
280280= [](uint32_t taskid, void * const user_context, AutoBuffer& outbuffer, AutoBuffer& extend, int & error_code, const int channel_select) {
281281 xassert2 (sg_callback != NULL );
282282 return sg_callback->Req2Buf (taskid, user_context, outbuffer, extend, error_code, channel_select);
283283};
284- // 底层回包返回给上层解析
284+ // 底层回包返回给上层解析
285285int (*Buf2Resp)(uint32_t taskid, void * const user_context, const AutoBuffer& inbuffer, const AutoBuffer& extend, int & error_code, const int channel_select)
286286= [](uint32_t taskid, void * const user_context, const AutoBuffer& inbuffer, const AutoBuffer& extend, int & error_code, const int channel_select) {
287287 xassert2 (sg_callback != NULL );
288288 return sg_callback->Buf2Resp (taskid, user_context, inbuffer, extend, error_code, channel_select);
289289};
290- // 任务执行结束
290+ // 任务执行结束
291291int (*OnTaskEnd)(uint32_t taskid, void * const user_context, int error_type, int error_code)
292292= [](uint32_t taskid, void * const user_context, int error_type, int error_code) {
293293 xassert2 (sg_callback != NULL );
294294 return sg_callback->OnTaskEnd (taskid, user_context, error_type, error_code);
295295 };
296296
297- // 上报网络连接状态
297+ // 上报网络连接状态
298298void (*ReportConnectStatus)(int status, int longlink_status)
299299= [](int status, int longlink_status) {
300300 xassert2 (sg_callback != NULL );
0 commit comments