简体   繁体   English

SCTP over UDP - Java 实现

[英]SCTP over UDP - Java implementation

I'm implementing WebRTC on the server-side, in Java within an existing container server.我正在服务器端实现 WebRTC,在现有容器服务器中使用 Java。 I need a library which will allow SCTP tunneled via UDP and possibly to a much lesser extent TCP.我需要一个库,它允许 通过 UDP和可能在较小程度上通过 TCP 隧道传输 SCTP It is my understanding that only WebRTC data channel use SCTP over DTLS over UDP and that the audo / video data will continue to use RTP/SRTP;据我了解,只有 WebRTC 数据通道使用 SCTP over DTLS over UDP,音频/视频数据将继续使用 RTP/SRTP; if I am incorrect on any of this, please correct me.如果我对此有任何不正确,请纠正我。

So far the only library I've found is here and it looks incomplete.到目前为止,我找到的唯一图书馆在这里,它看起来不完整。 The Jitsi also looked like an option, but they don't have full support for this or the whole of WebRTC as of yet. Jitsi看起来也是一种选择,但他们目前还没有完全支持这个或整个 WebRTC。

IETF draft - UDP Encapsulation of SCTP Packets IETF 草案 - SCTP 数据包的 UDP 封装

Jitsi - Google summer of code 2014 Jitsi - Google Summer of Code 2014

Many years after posting the original question, I found a solution;发布原始问题多年后,我找到了解决方案; I wasn't waiting, I just had not gotten back on this task until I was home during the pandemic;我不是在等待,我只是在大流行期间回家后才重新开始这项任务; so without further rambling, this is what I used for an implementation at work: https://github.com/pipe/sctp4j This is an outstanding library and I was able to bend it to fit into my codebase.所以不用再啰嗦了,这就是我在工作中使用的实现: https : //github.com/pipe/sctp4j这是一个出色的库,我能够将它弯曲以适应我的代码库。

Regarding to the O'Reilly book on High-Performance Browser Networking Chapter 18 you seem to be absolutly right.关于 O'Reilly 关于高性能浏览器网络第 18 章的书,您似乎完全正确。 I'm sorry that I can not help you finding an appropriate implementation, if there is one yet.很抱歉,我无法帮助您找到合适的实现(如果有的话)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM