HTTPClient callback has no way of accessing non-global data
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 30/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- cpp
- 领域
- networking
调研方向
首先定位 C++ SDK 中 HTTPClient callback 的注册和调用路径;issue 未指定具体的文件或测试。将所请求的 void* 上下文方式与建议的 std::function 或 templated callback 进行比较,然后定义受支持的 callback 行为并添加覆盖,在此之前不要将工作视为完成。
由索引模型根据 Issue 内容生成。
描述
typically with callbacks a void* is passed when setting the callback, and then when something calls the callback, they will pass it that void*. this allows users to cast the void* in to whatever data they need within the callback.
without this, only static/global data is accessible from within the callback, which is quite limiting.
alternatively, something like std::function or a templated function could be used instead, to allow us to pass a lambda for the callback and capture state.
- 主要语言
- C++
- 星标
- 34
- 派生
- 25
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Countly/countly-sdk-cpp 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 45/100
Countly/countly-sdk-cpp#103 · 3 条评论 ·
-
难度 4/5 3-5 天 新手友好度 45/100
Countly/countly-sdk-cpp#100 ·
-
难度 3/5 1-2 天 新手友好度 35/100
Countly/countly-sdk-cpp#36 · 4 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
Countly/countly-sdk-cpp#34 ·
-
No namespace未关闭
难度 2/5 1-3 小时 新手友好度 35/100
Countly/countly-sdk-cpp#33 · 1 个 reaction ·
查看 Countly/countly-sdk-cpp 的全部 Issue
相似的 Issue
-
Mac mini M6 (16 GB): Q2_0 streaming works - measured 11.7->27.2 tok/s + arena fix for sub-32 GB Macs未关闭
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
champion good first issue remake source/qq
难度 2/5 1-3 小时 新手友好度 65/100
metasequoiaime/msime-windows#1025 ·
维护者通常 1 天内回复
-
backlog bug
难度 2/5 1-3 小时 新手友好度 75/100
EchoTools/nevr-runtime#653 ·
维护者通常 1 天内回复
-
`--fail-require-skip` never fires: run_tests.py searches stdout, but the unittest binary writes the skip summary to stderr可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
InfiniTimeOrg/InfiniTime#2492 ·