开发者

Telnet Client - Java [closed]

开发者_开发知识库 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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?


A telnet client is just line based communication with a telnet server. The basics is covered by

  • Socket
  • BufferedReader
  • PrintWriter

What extra features do you need?


Apache Commons Net offers probably everything you need. You may want to have a look at an example here.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜