@@ -255,46 +255,46 @@ bool (*MakesureAuthed)()
255
255
return sg_callback->MakesureAuthed ();
256
256
};
257
257
258
- // 流量统计
258
+ // 流量统计
259
259
void (*TrafficData)(ssize_t _send, ssize_t _recv)
260
260
= [](ssize_t _send, ssize_t _recv) {
261
261
xassert2 (sg_callback != NULL );
262
262
return sg_callback->TrafficData (_send, _recv);
263
263
};
264
264
265
- // 底层询问上层该host对应的ip列表
265
+ // 底层询问上层该host对应的ip列表
266
266
std::vector<std::string> (*OnNewDns)(const std::string& host)
267
267
= [](const std::string& host) {
268
268
xassert2 (sg_callback != NULL );
269
269
return sg_callback->OnNewDns (host);
270
270
};
271
271
272
- // 网络层收到push消息回调
272
+ // 网络层收到push消息回调
273
273
void (*OnPush)(uint64_t _channel_id, uint32_t _cmdid, uint32_t _taskid, const AutoBuffer& _body, const AutoBuffer& _extend)
274
274
= [](uint64_t _channel_id, uint32_t _cmdid, uint32_t _taskid, const AutoBuffer& _body, const AutoBuffer& _extend) {
275
275
xassert2 (sg_callback != NULL );
276
276
sg_callback->OnPush (_channel_id, _cmdid, _taskid, _body, _extend);
277
277
};
278
- // 底层获取task要发送的数据
278
+ // 底层获取task要发送的数据
279
279
bool (*Req2Buf)(uint32_t taskid, void * const user_context, AutoBuffer& outbuffer, AutoBuffer& extend, int & error_code, const int channel_select)
280
280
= [](uint32_t taskid, void * const user_context, AutoBuffer& outbuffer, AutoBuffer& extend, int & error_code, const int channel_select) {
281
281
xassert2 (sg_callback != NULL );
282
282
return sg_callback->Req2Buf (taskid, user_context, outbuffer, extend, error_code, channel_select);
283
283
};
284
- // 底层回包返回给上层解析
284
+ // 底层回包返回给上层解析
285
285
int (*Buf2Resp)(uint32_t taskid, void * const user_context, const AutoBuffer& inbuffer, const AutoBuffer& extend, int & error_code, const int channel_select)
286
286
= [](uint32_t taskid, void * const user_context, const AutoBuffer& inbuffer, const AutoBuffer& extend, int & error_code, const int channel_select) {
287
287
xassert2 (sg_callback != NULL );
288
288
return sg_callback->Buf2Resp (taskid, user_context, inbuffer, extend, error_code, channel_select);
289
289
};
290
- // 任务执行结束
290
+ // 任务执行结束
291
291
int (*OnTaskEnd)(uint32_t taskid, void * const user_context, int error_type, int error_code)
292
292
= [](uint32_t taskid, void * const user_context, int error_type, int error_code) {
293
293
xassert2 (sg_callback != NULL );
294
294
return sg_callback->OnTaskEnd (taskid, user_context, error_type, error_code);
295
295
};
296
296
297
- // 上报网络连接状态
297
+ // 上报网络连接状态
298
298
void (*ReportConnectStatus)(int status, int longlink_status)
299
299
= [](int status, int longlink_status) {
300
300
xassert2 (sg_callback != NULL );
0 commit comments