Posted By:
Stephen_Ostermiller
Posted On:
Tuesday, January 28, 2003 03:28 PM
Telnet should be one of the easiest things to implement. You should open a socket to server on port 23. Get the InputStream from the socket connection and echo anything that you read from it to the screen. Capture all key strokes and send them to the OutputStream associated with the socket.
The hard part comes when you get display codes and you have to emulate some terminal's behavior. However, for basic stuff you don't need to do this, only if you run programs like lynx or pine.