Originally posted by Arpit:
Can someone tell me how to do telnet in java.....
.....
Please help me asap as my deadline is very near.
It might not be a big deal for an experienced developer to help you coding this kind of simple application. But it won't increase your programming skill, which is one of the reasons that you are on this kind of project.
But I can give you some hints to help you. Just a sketch to see the idea.
-Create Socket to the telnet server that you are connecting to.
-Using OutputStream and InputStream associated with that Socket to communicate with the telnet server. (This might be a handy job.)
-Put your code inside while(true) loop and put a terminating criterion inside that loop also so that your loop won't run forever.
That's it! I hope you get some ideas...
Try to code sthing and ask questions here... It's a good way to learn things...
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0