简体   繁体   English

使用非阻塞架构管理 DTLS

[英]Managing DTLS using a non-blocking architecture

I am trying to add DTLS support in my server that is currently based on Netty.我正在尝试在当前基于 Netty 的服务器中添加 DTLS 支持。 Netty gives me the possibility to add handlers to a pipeline where packets are treated in the defined order and changed when they need to be changed. Netty 使我可以将处理程序添加到管道中,在管道中按定义的顺序处理数据包,并在需要更改时进行更改。

BouncyCastle's support for TLS and DTLS is currently limited to use with "old" blocking I/O. BouncyCastle 对 TLS 和 DTLS 的支持目前仅限于与“旧”阻塞 I/O 一起使用。 This makes it difficult (maybe impossible) to use BC with non-blocking NIO frameworks like Netty.这使得在非阻塞 NIO 框架(如 Netty)中使用 BC 变得困难(可能不可能)。

Does anyone know of any DTLS implementation that can be used with non-blocking frameworks like Netty or a possible workaround to make regular cryptography libraries such has Bouncy Castle work in this situation?有谁知道任何 DTLS 实现可以与 Netty 等非阻塞框架一起使用,或者有一种可能的解决方法来制作常规加密库,例如 Bouncy Castle 在这种情况下可以工作?

Thanks.谢谢。

There is a pull request for the Bouncy Castle library that implements DTLS using non-blocking API.有一个使用非阻塞 API 实现 DTLS 的 Bouncy Castle 库的 拉取请求 You could apply it to the BC source code and create your own version of it.您可以将其应用于 BC 源代码并创建您自己的版本。

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

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