Open source C# vt100 server

穿精又带淫゛_ 提交于 2019-12-12 09:27:40

问题


Does anyone know of an open source C# vt100 server? I'm looking to create a C# server that understands the escape sequences from a vt100 client.


回答1:


This takes me waaaay back. I... don't think it's the server, but the application, that needs to understand the escape sequences.

The server only needs to pass them to the application that's running.

Think of a text-based application. It needs to know what the user is sending to it so that it can send back the proper response. The terminal server you're talking about sits between the application and the user, acting as part of the communication layer. What the server can (and should) do is send a request for terminal type and parse the result to make sure it's talking to a VT100. But, beyond that (even logging in is another application), I'd leave it to the application to respond to commands coming down the wire.

Another way to look at it: imagine the server is up and running. What will it dump a user to? The C:\? That's telnet. What good would a VT100 escape sequence do at a DOS prompt? Not a lot (a DOS prompt is really "command.com" talking back to the user - the "application" I was talking about earlier; telnet isn't interpreting the escape sequences, it's simply passing them to command.com and command.com spits out the response).




回答2:


Couldn't find a C# one but this Java one has the gist of it.




回答3:


If you have vt100 client, you should create simple tcplistener and setting it to listen 23 port. Send vt100 commands . If you want, I can send c# code




回答4:


Hve u tried ackterm?...I've just googled the term "vt100 implementation .net" (after u've responded to my ques) and I got an article on codeproject which talks about ackterm. I think you'd want something close...it is a telnet client (I think) which understands how to parse vt100 commands. This is my observation. (I've used it to connect to my telnet server). Its open source and hence you'd have to figure out what part of the code you need. I just discovered about it today, and still in the process of extracting what I need. I know its in there somewhere...

Hope this helps. I owe u a thanx for mentioning to me its a vt100 stuff.



来源:https://stackoverflow.com/questions/1641026/open-source-c-sharp-vt100-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!