SCTP 是否像宣传的那样在 Linux 上工作?

发布于 2024-07-19 08:23:40 字数 127 浏览 5 评论 0原文

我计划将 SCTP 用于嵌入式 Linux 项目。 有人对 SCTP 使用有一些评论吗,主要是一对多模式? 它是否优于使用自制的基于 UDP 的等效解决方案?

我控制网络环境和所有涉及的设备,所以兼容性不是问题。

I am planning to use SCTP for a embedded Linux project. Anybody has some comments on SCTP usage, mostly in one-to-many mode? Did it beat using a home-made UDP-based equivalent solution?

I control the network environement and all devices involved, so compatibility is not an issue.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

短暂陪伴 2024-07-26 08:23:40

我广泛使用了 lksctp,发现它非常强大并且可以与 sctp 的许多其他实现互操作。 SCTP 套接字 API 的标准仍在不断发展,但已经相当成熟,我希望任何进一步的更改都能向后兼容。

我会放心地使用它。

I have made extensive use of lksctp and have found it to be robust and interoperable with many other implementations of sctp. The standard for the sockets API for SCTP is still evolving but is quite mature and I would expect any further changes to be backwards compatible.

I would use it with confidence.

青萝楚歌 2024-07-26 08:23:40

ACE 库有一个 SCTP 性能测试,所以我会假设它有效。

目前这些程序提供了唯一的示例代码
如何使用 ACE 的 SCTP 包装外观。 未来还会追加
代码将放置在 ACE_wrappers/examples/IPC_SAP/SOCK_SAP 中
目录。

无论如何,使用像 ACE 这样的框架是一个好主意,因为它允许您在更高级别上进行编程,并让您免受套接字编程中容易出错的低级细节的影响。 作为额外的奖励,您的代码将可移植到 ACE 支持的所有平台

The ACE library has a performance test for SCTP, so I would assume that it works.

Currently these programs provide the only example code on
how to use ACE's wrapper-facades for SCTP. In the future additional
code will be placed in the ACE_wrappers/examples/IPC_SAP/SOCK_SAP
directory.

Using a framework like ACE is a good idea anyway, as it alloes you to program on a higher level and shields you from the error prone low level details of socket programming. As an additional bonus your code will be portable to all platforms that ACE supports.

等风来 2024-07-26 08:23:40

最好的答案是评论:

此外,Glibc 中的 SCTP 支持不太理想(换句话说,不存在)——您必须使用 lksctp 中的库,并且它没有完全集成到普通套接字 API 中。 这只是使用一个封装低级功能的优秀库的又一个理由:) – ephemient

Best answer is the comment:

Also, SCTP support in Glibc is less than ideal (in other words, non-present) -- you must use the libraries from lksctp, and it's not entirely well-integrated into the normal sockets API. Just one more reason to use a nice library that encapsulates the low-level functionality :) – ephemient

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文