Class chap7.ch7_fig4
All Packages Class Hierarchy This Package Previous Next Index
Class chap7.ch7_fig4
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----chap7.ch7_fig4
- public class ch7_fig4
- extends Applet
An applet that reports the hostname and ip address of the
machine reading the html page back to the server from which
the html page was loaded.
-
init()
- Resize the applet to almost nothing, and change the port
number that the applet will connect to, if the port parameter
is set in the applet tag.
-
start()
- Check if the snitcher has already informed on this user
and only contact the server if we haven't run yet.
init
public void init()
- Resize the applet to almost nothing, and change the port
number that the applet will connect to, if the port parameter
is set in the applet tag.
- Overrides:
- init in class Applet
start
public void start()
- Check if the snitcher has already informed on this user
and only contact the server if we haven't run yet. Tries to
guarantee that we only get one report for each time the page
is loaded.
- Overrides:
- start in class Applet
All Packages Class Hierarchy This Package Previous Next Index