examples
public class Telnet extends java.awt.event.WindowAdapter
Usage:
java -cp examples.jar examples.Telnet
[server[:port]]
Constructor and Description |
---|
Telnet()
Constructor which will cause the window to prompt the user for
the server to connect to.
|
Telnet(java.lang.String remoteHost)
Constructor which will cause a connection to the default port (23)
on the given host.
|
Telnet(java.lang.String remoteHost,
int remotePort)
Constructor which will cause a connection to a specified port
on the given host.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] argv)
Run the application
|
void |
startMeUp()
Create the terminal window and connect to the remote host.
|
void |
windowClosing(java.awt.event.WindowEvent e)
Handles window close events by closing the socket to the server
(if any).
|
public Telnet()
public Telnet(java.lang.String remoteHost)
public Telnet(java.lang.String remoteHost, int remotePort)
public void startMeUp()
public static void main(java.lang.String[] argv)
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
windowClosing
in class java.awt.event.WindowAdapter