通过AF

编程入门 行业动态 更新时间:2024-10-25 15:27:31
本文介绍了通过AF_UNIX套接字的WebSocket的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

是否可以在AF_UNIX套接字(Unix域套接字)上使用WebSocket?在技​​术上是否可行,如果可以,是否有任何实现(主要是浏览器运行时)支持它?

Is it possible to use WebSocket over AF_UNIX sockets (Unix-domain sockets)? Is it technically possible, and if so, do any implementations (mainly browser runtimes) support it?

推荐答案

是的,这是可能的. AutobahnPython 支持通过任何流的WebSocket运行WebSocket "www.twistedmatrix/" rel ="nofollow">扭曲,例如:

Yes, this is possible. AutobahnPython supports running WebSocket over any stream-based transport supported by Twisted like:

  • TCP
  • TLS
  • Unix域套接字
  • 管道
  • 序列

请参见此处.

FWIW,它还支持隧道化

FWIW, it also supports tunneling any stream-based protocol over WebSocket. E.g. it allows you to run SSH over WebSocket (over any stream-based protocol).

据我所知,除了WebSocket的TCP/TLS作为底层传输之外,没有浏览器支持任何其他功能.

As far as I know, no browser supports anything but TCP/TLS for WebSocket as underyling transport.

更多推荐

通过AF

本文发布于:2023-10-07 15:37:35,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:AF

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!