Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Sockets and Internet Protocols and the fly likes Java 1.3 Socket Input Stream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Java 1.3 Socket Input Stream" Watch "Java 1.3 Socket Input Stream" New topic
Author

Java 1.3 Socket Input Stream

Aj Jaro
Greenhorn

Joined: Oct 24, 2010
Posts: 9
I understand that this version of Java is no longer supported and is completely out of date, however I was hoping to find some answers because an upgrade is just not possible.

The purpose of this program is to change passwords on a list of devices with given usernames and password. After successfully connecting to multiple devices for years, I needed to add a new device to connect to. This new device has a telnet pass-through login, where you give the server your username and it passes you to the appropriate device where you logon.

I am able to use the output stream with no problem. The input stream, however, only returns 'ÿý%' after opening the socket and nothing else no matter what I put in the output stream. It should return a few more things, at least:

Trying...
Connected to superSecret.com.
Escape character is '^]'.
Local flow control off

Do you have any ideas?


OCPJP 6
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Java 1.3 Socket Input Stream