通过FTP协议在基于远程服务器GUI的终端仿真器上绘制图像 [英] Draw an image onto a Terminal Emulator based on GUI of Remote Server through FTP Protocol

查看:69
本文介绍了通过FTP协议在基于远程服务器GUI的终端仿真器上绘制图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我不确定是否可以通过主题栏向您说明.
我正在尝试在Windows上探索C编程,以开始为像Linux这样的远程服务器准备终端仿真器.
因此,我正在使用Win32 API探索C.

现在,当我再想一想的时候,我会怀疑如下.
1.如何在Linux服务器(在远程服务器上打开的窗口)上的本地终端上精确模拟GUI映像.
更加清楚.我想说的是,我如何在我希望准备的本地终端中准确显示服务器的GUI图像.
如果您可以向我建议任何特殊的技术主题,这些主题都会建议一种实现此功能的方法,那就太好了.
我知道您可能会要求我研究已经编程的开源应用程序的原始代码,但是这可能会使我遇到麻烦,因为我想逐步学习.
请注意,我正在尝试学习使用C和Win32 API实现上述内容.
问候,

Hi,
I am not sure if I am able to make it clear to you with the subject line.
I am trying to explore c programming on windows to start preparing an Terminal emulator to a remote Server like Linux.
So I am exploring C using Win32 API''s.

Now, when i think a little further i get a doubt as below.
1. How do i exactly simulate a GUI image on a Linux Server ( a window opened on remote server ) onto my local terminal.
To be more clear. I would like to say that how do i exactly show the GUI image of a server in my local terminal which i am aspiring to prepare.
If you can suggest me any special technical topic which would suggest a way to implement this feature that would be great.
I know you might ask me to look into the raw codes of open source applications which were already programmed but that might make me to get into trouble as i want to learn through step by step approach.
Note that I am trying to learn implementing the above using C and Win32 API''s.
Regards,

推荐答案

好吧,Linux终端运行的cli(bash,sh等)与Windows(DOSBox)不同,所以您不能直接通过管道传输通过文字,这是肯定的.同样,GUI也没有集成到* nix系统中.相反,它是使用客户端-服务器模型在Windows X(X11)中实现的.如果您只是在学习C,我建议您不要尝试立即为Windows实现X11客户端(我很确定协议也不是所有的标准).然后就是使用FTP的整个问题,因为FTP用于文件传输...最好使用X11协议或定义自己的包装器协议.如果服务器未运行X11,此方法也将不起作用,并且对于许多Linux服务器(它们仅具有cli)也是如此.
Well, linux terminals run a different cli (bash,sh,etc.) than Windows (DOSBox), so you can''t directly pipe the text through, that''s certain. Also, GUI also isn''t integrated into *nix systems. Instead it''s implemented with Windows X (X11), using a client-server model. If you''re just learning C, I suggest you don''t try to implement a X11 client for Windows right off the bat (I''m pretty sure the protocol isn''t all that standard either). Then there''s the whole problem with using FTP, because FTP is for File transfer... you''re better off using the X11 protocol or defining your own wrapper protocol. This approach also doesn''t work if the server doesn''t run X11, and that''s true for many Linux servers (they only have cli).


这篇关于通过FTP协议在基于远程服务器GUI的终端仿真器上绘制图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆