telnet.html

dw_fluffos_v1/lib/www/external/java/telnet/Documentation/Source/telnet.html · 17.4 KB

From the archive dw_fluffos_v1.tar.gz

Download the archive   « Back to the archive contents

<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Mon Feb 23 10:46:39 CET 1998 -->
<a name="_top_"></a>
<title>
  Class telnet
</title>
</head>
<body>
<h1>
  Class telnet
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----<a href="java.awt.Component.html#_top_">java.awt.Component</a>
           |
           +----<a href="java.awt.Container.html#_top_">java.awt.Container</a>
                   |
                   +----<a href="java.awt.Panel.html#_top_">java.awt.Panel</a>
                           |
                           +----<a href="java.applet.Applet.html#_top_">java.applet.Applet</a>
                                   |
                                   +----telnet
</pre>
<hr>
<dl>
  <dt> public class <b>telnet</b>
  <dt> extends <a href="java.applet.Applet.html#_top_">Applet</a>
  <dt> implements <a href="java.lang.Runnable.html#_top_">Runnable</a>, <a href="display.TerminalHost.html#_top_">TerminalHost</a>, <a href="socket.StatusPeer.html#_top_">StatusPeer</a>
</dl>
A telnet implementation that supports different terminal emulations.
<dl>
  <dt> <b>Version:</b>
  <dd> $Id: telnet.java,v 1.19 1998/02/09 10:22:15 leo Exp $
  <dt> <b>Author:</b>
  <dd> Matthias L. Jugel, Marcus Meißner
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index">
</h2>
<dl>
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#address"><b>address</b></a>
  <dd> The host address to connect to.
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#emulation"><b>emulation</b></a>
  <dd> Emulation type (default is vt320).
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#modules"><b>modules</b></a>
  <dd> Dynamically loaded modules are stored here.
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#params"><b>params</b></a>
  <dd> This Hashtable contains information retrievable by getParameter() in case
the program is run as an application and the AppletStub is missing.
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#port"><b>port</b></a>
  <dd> The port number (default ist 23).
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#proxy"><b>proxy</b></a>
  <dd> The proxy ip address.
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#proxyport"><b>proxyport</b></a>
  <dd> The proxy port number.
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#term"><b>term</b></a>
  <dd> The terminal emulation (dynamically loaded).
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#tio"><b>tio</b></a>
  <dd> The telnet io methods.
</dl>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#telnet()"><b>telnet</b></a>()
  <dd> 
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#connect()"><b>connect</b></a>()
  <dd> Connect to the specified host and port but don't break existing 
connections.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#connect(java.lang.String)"><b>connect</b></a>(String)
  <dd> Connect to the specified host and port but don't break existing 
connections.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#connect(java.lang.String, int)"><b>connect</b></a>(String, int)
  <dd> Connect to the specified host and port but don't break existing 
connections.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#disconnect()"><b>disconnect</b></a>()
  <dd> Disconnect from the remote host.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getAppletInfo()"><b>getAppletInfo</b></a>()
  <dd> 
Retrieve the current version of the applet.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getParameter(java.lang.String)"><b>getParameter</b></a>(String)
  <dd> We override the Applet method getParameter() to be able to handle 
parameters even as application.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getParameterInfo()"><b>getParameterInfo</b></a>()
  <dd> Retrieve parameter tag information.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#init()"><b>init</b></a>()
  <dd> Initialize applet.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#main(java.lang.String[])"><b>main</b></a>(String[])
  <dd> The main function is called on startup of the application.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#notifyStatus(java.util.Vector)"><b>notifyStatus</b></a>(Vector)
  <dd> This method is called when telnet needs to be notified of status changes.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#run()"><b>run</b></a>()
  <dd> Try to read data from the sockets and put it on the terminal.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#send(java.lang.String)"><b>send</b></a>(String)
  <dd> Send a String to the remote host.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#start()"><b>start</b></a>()
  <dd> Upon start of the applet try to create a new connection.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#stop()"><b>stop</b></a>()
  <dd> Disconnect when the applet is stopped.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#writeToSocket(java.lang.String)"><b>writeToSocket</b></a>(String)
  <dd> Send a String to the remote Host.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#writeToUser(java.lang.String)"><b>writeToUser</b></a>(String)
  <dd> Send a String to the users terminal

</dl>
<a name="variables"></a>
<h2>
  <img src="images/variables.gif" width=153 height=38 alt="Variables">
</h2>
<a name="tio"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>tio</b>
<pre>
  protected <a href="socket.TelnetIO.html#_top_">TelnetIO</a> tio
</pre>
<dl>
  <dd> The telnet io methods.
  <dl> 
    <dt> <b>See Also:</b>
    <dd> <a href="socket.TelnetIO.html#_top_">TelnetIO</a>
  </dl>
</dl>
<a name="term"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>term</b>
<pre>
  protected <a href="display.Terminal.html#_top_">Terminal</a> term
</pre>
<dl>
  <dd> The terminal emulation (dynamically loaded).
  <dl> 
    <dt> <b>See Also:</b>
    <dd> <a href="emulation.html#_top_">emulation</a>, <a href="display.Terminal.html#_top_">Terminal</a>, <a href="display.TerminalHost.html#_top_">TerminalHost</a>
  </dl>
</dl>
<a name="address"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>address</b>
<pre>
  protected <a href="java.lang.String.html#_top_">String</a> address
</pre>
<dl>
  <dd> The host address to connect to. This is retrieved from the PARAM tag
"address".
</dl>
<a name="port"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>port</b>
<pre>
  protected int port
</pre>
<dl>
  <dd> The port number (default ist 23). This can be specified as the PARAM tag
"port".
</dl>
<a name="proxy"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>proxy</b>
<pre>
  protected <a href="java.lang.String.html#_top_">String</a> proxy
</pre>
<dl>
  <dd> The proxy ip address. If this variable is set telnet will try to connect
to this address and then send a string to tell the relay where the
target host is.
  <dl> 
    <dt> <b>See Also:</b>
    <dd> <a href="address.html#_top_">address</a>
  </dl>
</dl>
<a name="proxyport"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>proxyport</b>
<pre>
  protected int proxyport
</pre>
<dl>
  <dd> The proxy port number. This is the port where the relay is expected to
listen for incoming connections.
  <dl> 
    <dt> <b>See Also:</b>
    <dd> <a href="proxy.html#_top_">proxy</a>, <a href="port.html#_top_">port</a>
  </dl>
</dl>
<a name="emulation"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>emulation</b>
<pre>
  protected <a href="java.lang.String.html#_top_">String</a> emulation
</pre>
<dl>
  <dd> Emulation type (default is vt320). This can be specified as the PARAM
tag "emulation".
  <dl> 
    <dt> <b>See Also:</b>
    <dd> <a href="term.html#_top_">term</a>, <a href="display.Terminal.html#_top_">Terminal</a>, <a href="display.TerminalHost.html#_top_">TerminalHost</a>
  </dl>
</dl>
<a name="modules"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>modules</b>
<pre>
  protected <a href="java.util.Vector.html#_top_">Vector</a> modules
</pre>
<dl>
  <dd> Dynamically loaded modules are stored here.
</dl>
<a name="params"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>params</b>
<pre>
  public <a href="java.util.Hashtable.html#_top_">Hashtable</a> params
</pre>
<dl>
  <dd> This Hashtable contains information retrievable by getParameter() in case
the program is run as an application and the AppletStub is missing.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="telnet"></a>
<a name="telnet()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>telnet</b>
<pre>
  public telnet()
</pre>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="getAppletInfo()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getAppletInfo"><b>getAppletInfo</b></a>
<pre>
  public <a href="java.lang.String.html#_top_">String</a> getAppletInfo()
</pre>
<dl>
  <dd> Retrieve the current version of the applet.
  <dl>
    <dt> <b>Returns:</b>
    <dd> String a string with the version information.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.applet.Applet.html#getAppletInfo()">getAppletInfo</a> in class <a href="java.applet.Applet.html#_top_">Applet</a>
  </dl>
</dl>
<a name="getParameterInfo()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getParameterInfo"><b>getParameterInfo</b></a>
<pre>
  public <a href="java.lang.String.html#_top_">String</a>[][] getParameterInfo()
</pre>
<dl>
  <dd> Retrieve parameter tag information. This includes the tag information from
terminal and loaded modules.
  <dl>
    <dt> <b>Returns:</b>
    <dd> String an array of array of string with tag information
    <dt> <b>Overrides:</b>
    <dd> <a href="java.applet.Applet.html#getParameterInfo()">getParameterInfo</a> in class <a href="java.applet.Applet.html#_top_">Applet</a>
    <dt> <b>See Also:</b>
    <dd> <a href="java.applet.Applet.html#getParameterInfo">getParameterInfo</a>
  </dl>
</dl>
<a name="getParameter(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getParameter"><b>getParameter</b></a>
<pre>
  public <a href="java.lang.String.html#_top_">String</a> getParameter(<a href="java.lang.String.html#_top_">String</a> name)
</pre>
<dl>
  <dd> We override the Applet method getParameter() to be able to handle 
parameters even as application.
  <dl>
    <dt> <b>Parameters:</b>
    <dd> name - The name of the queried parameter.
    <dt> <b>Returns:</b>
    <dd> the value of the parameter
    <dt> <b>Overrides:</b>
    <dd> <a href="java.applet.Applet.html#getParameter(java.lang.String)">getParameter</a> in class <a href="java.applet.Applet.html#_top_">Applet</a>
    <dt> <b>See Also:</b>
    <dd> <a href="java.applet.Applet.html#getParameter">getParameter</a>
  </dl>
</dl>
<a name="main(java.lang.String[])"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="main"><b>main</b></a>
<pre>
  public static void main(<a href="java.lang.String.html#_top_">String</a> args[])
</pre>
<dl>
  <dd> The main function is called on startup of the application.
</dl>
<a name="init()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="init"><b>init</b></a>
<pre>
  public void init()
</pre>
<dl>
  <dd> Initialize applet. This method reads the PARAM tags "address",
"port" and "emulation". The emulation class is loaded dynamically.
It also loads modules given as parameter "module#<nr>".
  <dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.applet.Applet.html#init()">init</a> in class <a href="java.applet.Applet.html#_top_">Applet</a>
  </dl>
</dl>
<a name="start()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="start"><b>start</b></a>
<pre>
  public void start()
</pre>
<dl>
  <dd> Upon start of the applet try to create a new connection.
  <dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.applet.Applet.html#start()">start</a> in class <a href="java.applet.Applet.html#_top_">Applet</a>
  </dl>
</dl>
<a name="stop()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="stop"><b>stop</b></a>
<pre>
  public final void stop()
</pre>
<dl>
  <dd> Disconnect when the applet is stopped.
  <dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.applet.Applet.html#stop()">stop</a> in class <a href="java.applet.Applet.html#_top_">Applet</a>
  </dl>
</dl>
<a name="run()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="run"><b>run</b></a>
<pre>
  public void run()
</pre>
<dl>
  <dd> Try to read data from the sockets and put it on the terminal.
This is done until the thread dies or an error occurs.
</dl>
<a name="connect()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="connect"><b>connect</b></a>
<pre>
  public boolean connect()
</pre>
<dl>
  <dd> Connect to the specified host and port but don't break existing 
connections. Connects to the host and port specified in the tags.
  <dl>
    <dt> <b>Returns:</b>
    <dd> false if connection was unsuccessful
  </dl>
</dl>
<a name="connect(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="connect"><b>connect</b></a>
<pre>
  public boolean connect(<a href="java.lang.String.html#_top_">String</a> host)
</pre>
<dl>
  <dd> Connect to the specified host and port but don't break existing 
connections. Uses the port specified in the tags or 23.
  <dl>
    <dt> <b>Parameters:</b>
    <dd> host - destination host address
  </dl>
</dl>
<a name="connect(java.lang.String, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="connect"><b>connect</b></a>
<pre>
  public boolean connect(<a href="java.lang.String.html#_top_">String</a> host,
                         int prt)
</pre>
<dl>
  <dd> Connect to the specified host and port but don't break existing 
connections.
  <dl>
    <dt> <b>Parameters:</b>
    <dd> host - destination host address
    <dd> prt - destination hosts port
  </dl>
</dl>
<a name="disconnect()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="disconnect"><b>disconnect</b></a>
<pre>
  public boolean disconnect()
</pre>
<dl>
  <dd> Disconnect from the remote host.
  <dl>
    <dt> <b>Returns:</b>
    <dd> false if there was a problem disconnecting.
  </dl>
</dl>
<a name="send(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="send"><b>send</b></a>
<pre>
  public boolean send(<a href="java.lang.String.html#_top_">String</a> str)
</pre>
<dl>
  <dd> Send a String to the remote host. Implements display.TerminalHost
  <dl>
    <dt> <b>Parameters:</b>
    <dd> s - String to be sent
    <dt> <b>Returns:</b>
    <dd> true if we are connected
    <dt> <b>See Also:</b>
    <dd> <a href="display.TerminalHost.html#_top_">TerminalHost</a>
  </dl>
</dl>
<a name="writeToSocket(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="writeToSocket"><b>writeToSocket</b></a>
<pre>
  public boolean writeToSocket(<a href="java.lang.String.html#_top_">String</a> str)
</pre>
<dl>
  <dd> Send a String to the remote Host.
  <dl>
    <dt> <b>Parameters:</b>
    <dd> str - String to be sent
    <dt> <b>Returns:</b>
    <dd> true if we are connected
    <dt> <b>See Also:</b>
    <dd> <a href="modules.BSXModule.html#_top_">BSXModule</a>
  </dl>
</dl>
<a name="writeToUser(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="writeToUser"><b>writeToUser</b></a>
<pre>
  public void writeToUser(<a href="java.lang.String.html#_top_">String</a> str)
</pre>
<dl>
  <dd> Send a String to the users terminal
  <dl>
    <dt> <b>Parameters:</b>
    <dd> str - String to be displayed
    <dt> <b>Returns:</b>
    <dd> void
    <dt> <b>See Also:</b>
    <dd> <a href="modules.BSXModule.html#_top_">BSXModule</a>
  </dl>
</dl>
<a name="notifyStatus(java.util.Vector)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="notifyStatus"><b>notifyStatus</b></a>
<pre>
  public <a href="java.lang.Object.html#_top_">Object</a> notifyStatus(<a href="java.util.Vector.html#_top_">Vector</a> status)
</pre>
<dl>
  <dd> This method is called when telnet needs to be notified of status changes.
  <dl>
    <dt> <b>Parameters:</b>
    <dd> status - Vector of status information.
    <dt> <b>Returns:</b>
    <dd> an object of the information requested.
    <dt> <b>See Also:</b>
    <dd> <a href="socket.StatusPeer.html#_top_">StatusPeer</a>
  </dl>
</dl>
</body>
</html>

Site Stats

Snippets: 1791
Codebases: 571