Support for ancillary data/control messages in `sendmsg`/`recvmsg` as well as the upcoming `sendmmsg`/`recvmmsg`

未关闭
#614 2 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@seuros 已经在做这个了。

开始于 2026年3月20日。

  • #645 来自 @seuros —— 未关闭

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
rust
领域
networking

调研方向

首先检查现有的 sendmsg 和 recvmsg API,然后将其数据表示与 sys/socket.h 中基于 msghdr 的辅助数据宏进行比较,包括 CMSG_FIRSTHDR 和 CMSG_NXTHDR。定义辅助消息应如何序列化和反序列化,以及该设计如何扩展到 sendmmsg 和 recvmmsg;当 API 一致地支持这些消息类型时,该 issue 即完成。

由索引模型根据 Issue 内容生成。

描述

The idiomatic way of parsing and constructing ancillary data in C is to use the various macros defined in sys/socket.h (CMSG_FIRSTHDR, CMSG_NXTHDR etc.). Those macros act on msghdr directly. Since we no longer return msghdr in the API, we should serialize/deserialize these messages for the user in the API as well.

主要语言
Rust
星标
885
派生
328
平均合并
6 天 12 小时
30 天内合并 PR
2

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

rust-lang/socket2 的其他 Issue

查看 rust-lang/socket2 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。