首页 > 解决方案 > 从 X11 Stream 重新创建显示输出

问题描述

我确实有两台用于控制工厂的计算机。其中一个控制工厂,另一个用作故障保险。它们通过以太网直接连接,而“非活动”的只是反映主控制器的显示。

我确实捕获了两者之间的网络流量,当我在wireshark中打开它时,我看到了它所有的X11流量。它确实包括初始连接请求,还包括所有纯文本的“绘图调用”。

我现在想“重播”这个捕获的流并从中重新创建屏幕内容。有没有可用的程序可以做到这一点?理想情况下直接来自wireshark捕获文件

到目前为止我的想法:我可以轻松地重放网络数据本身并将其发送到某个套接字,但是通信是特定于会话的,例如,某些命令引用了之前设置的特定句柄值。新会话不太可能使用相同的值,因此我不能将其通过管道传输到某个程序中

标签: x11

解决方案


What you see from your connection is only your connection requests + events relevant to the windows created by you ( or other's client windows where your connection sets an event mask ), and because of that quite a lot is lost. I'm not aware of the programs that can reconstruct best possible version of the screen from one client traffic but it's certainly not possible to have 100% accurate copy of the screen and best possible model will be far away from real screen (unless your connection periodically polls for backing store content of each mapped window).


推荐阅读