Host is the name of the internet host or the IP address that you
want to connect to.
The port for most telnet daemons is 23.
The emulation must match an Emulation.class subclass in the Telnet.class directory.
**NEW** First stab at VT100. Right now it's the same as ANSI. Let me know if it doesn't
work for you. The emulation code can be loaded on the fly.
Restrictions
For Netscape Navigator, the only valid host is the host the code
is residing on. You must have a telnet daemon running on the host where this
page resides for it to work! Sun's Appletviewer is unrestricted and can connect anywhere.
The source
Telnet.java - source of the main class. Based
on dummy telnet code written by Jamie Cameron (jameson@ncb.gov.sg)
Emulation.java - source of the abstract
class for emulation subclasses.
ANSI.java - source of the ANSI Emulation subclass.
VT100.java - source of the VT100 Emulation subclass.
If you want to use this code on your site just
ask.
Feedback: Please send me your comments at bret@lm.com.