x11 - X11 channel 到底是什么

标签 x11

到目前为止我发现的所有 X11 文档中都写有这样的内容

Communication between server and clients is done by exchanging packets over a channel. The connection is established by the client (how the client is started is not specified in the protocol). (from wikipedia)

我没能找到这个 channel 到底是什么?例如网络 channel ?是在港口吗?它是内存映射吗?感谢您的帮助。

最佳答案

“ channel ”的措辞故意含糊不清,因为它可以通过本地套接字、远程连接(例如 SSH)、命名管道或其他允许客户端/服务器双向通信的方法。也就是说,“ channel ”只是两点之间促进数据交换的连接。

通过SSH进行X11转发时, channel 为SSH连接。例如,参见 SSH man 页面:

$ man ssh

X11 connections and arbitrary TCP/IP ports can also be forwarded over the secure channel.

或根据 x.org文档:

The communications channel between an X client and server is full-duplex: either side can send a message to the other at any time. This is canonically implemented over a TCP/IP socket interface, though other communications channels are often used, including Unix domain sockets, named pipes and shared memory. The channel must provide a reliable, ordered byte stream---the X protocol provides no mechanism for reordering or resending packets.

关于x11 - X11 channel 到底是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30768198/

相关文章:

linux - AwesomeWM 时间不更新?

c++ - 如何使用 xlib 识别顶级 X11 窗口?

x11 - XSync - 丢弃参数是什么意思?

java - 在 java swing 中创建 X window(X11) 并获取它的 id

x11 - xinput 触摸屏校准不一致

linux - 从空环境访问 X11 显示 (bash)

r - 如何自动将绘图保存为png?

r - ggplot错误: ssh X11 forwarding

Python:文本覆盖在所有窗口顶部,包括 Linux 中的全屏

c - 窗口没有出现在屏幕上