代码拉取完成,页面将自动刷新
【模块名_概率】简要描述:
core/connection/interface/softbus_base_listener.h
中定义BaseListener输入使用 moduleId/listenerId为标识(实际都是ListenerModule), 输出的onConnectEvent 和 onDataEvent却不带 moduleId。 导致业务无法精确匹配,数据处理冗余,且性能不佳
typedef struct {
int32_t (*onConnectEvent)(int32_t events, int32_t cfd, const ConnectOption *clientAddr);
int32_t (*onDataEvent)(int32_t events, int32_t fd);
} SoftbusBaseListener;
uint32_t CreateListenerModule(void);
void ReleaseListenerModule(uint32_t ListenerId);
int32_t GetSoftbusBaseListener(uint32_t listenerId, SoftbusBaseListener *listener);
int32_t StartBaseClient(uint32_t listenerId);
int32_t StartBaseListener(uint32_t listenerId, const LocalListenerInfo *info, const SoftbusBaseListener *listener);
int32_t StopBaseListener(uint32_t listenerId);
void ResetBaseListener(uint32_t module);
void ResetBaseListenerSet(uint32_t module);
void DestroyBaseListener(uint32_t module);
int32_t AddTrigger(uint32_t module, int32_t fd, TriggerType triggerType);
int32_t DelTrigger(uint32_t module, int32_t fd, TriggerType triggerType);
【环境信息】:
不涉及
【预置条件】:
【测试步骤】:
【预期结果】:
【实际结果】:
【恢复手段】:
【出现概率】:问题出现次数/实际测试次数
【定位信息】:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论