如何创建Telnet服务器以模拟Dos程序 [英] How Do I Create Telnet Server To Emulate Dos Program

查看:106
本文介绍了如何创建Telnet服务器以模拟Dos程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





最近我正在开发sap开发。



i需要模仿SAP控制台程序通过telnet服务器

所以我的hanheld设备可以telnet到该程序



i浏览并找到此georgiasoft [ ^ ]支持VT220在掌上电脑中支持F1 F2 F3等键。但这是一个值得纪念的。



所以我决定制作自己的telnet服务器,但我刚刚找到示例代码来构建简单的telnet服务器,只需等待字符串并传递另一个字符串。



i不知道如何模拟telnet客户端中的sapconsole程序。 VT220在哪里参与。





谢谢

Hi,

recently i'm working in sap develpment.

i need to emulate SAP console program via telnet server
so my hanheld device can telnet to that program

i browsed and found this georgiasoft[^] that support VT220 to support F1 F2 F3 etc key in handheld. but this is commecial one.

so i decide to make my own telnet server, but i just found sample code to build simple telnet server that just wait for string and deliver another string.

i have no idea, how to emulate the sapconsole program in telnet client. and where is the VT220 takes part.


Thank you

推荐答案

我最近写了一篇,并不像听起来那么简单。



要获得一个基本的控制台会话,你可以使用TcpClient并附上一些一种流读/写东西。



当你连接到telnet服务器时,它会发送一个列表,它会变得复杂并且做不到,可选择做什么。您需要拦截这些消息并做出适当的响应。 WILL,WONT,DO,DONT。



然后,telnet支持不同类型的终端。您可能想要协商屏幕大小等。有各种键的映射到转义序列等。



如果可能,我会考虑放弃挑战,但如有必要,我们需要非常熟悉一些管理标准的RFC。
I've written one recently, and it's not as easy as it sounds.

To get a basic console session up, you can just use a TcpClient and attach some sort of stream reading/writing thing to it.

It gets complicated by the fact that when you connect to a telnet server, it will send a list of what it can and can't do, optionally what it'd like to do. You need to intercept these messages and respond appropriately. WILL, WONT, DO, DONT.

Then, telnet supports different types of terminals. You may want to negotiate screen size etc. There's mapping of various keys to escape sequences etc.

If possible, I'd considering abandoning the challenge, but if necessary you'll need to get very familiar with a number of RFCs governing the standard.


这篇关于如何创建Telnet服务器以模拟Dos程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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