Telnet 客户端 - Java
我想用java写一个telnet客户端;我想知道我需要注意或实施哪些东西才能制作这样的应用程序。有什么我应该学习的特定课程吗?
I want to write a telnet client using java; I would like to know what stuff I need to look out for or implement to make such an application. Are there any particular classes that I should look in to?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
telnet 客户端只是与 telnet 服务器进行基于线路的通信。 涵盖了基础知识
您还需要哪些额外功能?
A telnet client is just line based communication with a telnet server. The basics is covered by
What extra features do you need?
Apache Commons Net 可能提供您需要的一切。您可能想在此处查看示例。
Apache Commons Net offers probably everything you need. You may want to have a look at an example here.
您需要查看十几个或更多涵盖 Telnet 协议及其各种选项的 RFC,整理出哪些是您真正需要的、哪些是历史性的、哪些只是从未实现的幻想等等。祝您好运。这是一项相当重要的研究。
或者按照其他人的建议进行操作并使用现有的实现。看一下 Java 终端适配器,我已经使用它很多年了,并取得了巨大的成功。
You need to look at a dozen or more RFCs covering the Telnet protocol and its various options, sorting out which of those you actually need, which are historical, which are just fantasies that were never implemented, etc etc etc. Good luck. It's quite a substantial piece of research.
Or do as the others have suggested and use an existing implementation. Have a look at the Java Terminal Adapter for one that I've been using with great success for several years now.