All Packages Class Hierarchy This Package Previous Next Index
Class mootcan.MOOtcan
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----mootcan.MOOtcan
- public class MOOtcan
- extends Applet
a simple MOO-client.
it is currently only usable for MOO-connections as it sends and read lines,
not characters, through and from the socket. it may be modified to support
character-oriented connections. this class glues together a GUI (currently
only a panel inside a frame) and a network-connection.
it supports processing of the stream from the MOO, so that things like
Surf'n Turf's browser interaction and MacMOOse's Object Browser can be
implemented.
two pipes are set up (marked with ->):
(the users input) -> (the parser) - (the network socket)
(the MOO output) -> (the moo parser) - (the users terminal)
maybe it will be possible to send objects through the MOO-server, maybe
storing them in MOO-objects, and rebuilding them at another client !? this
could be usable for exhcanging objects like texts / pictures / sounds, you
name it.
for security, the applet and its threads are killed if the browser leaves *
the applet-page for more than 10 seconds. the way we do this, is to start a
thread that is waiting for the user to get back. there is a link to a
description of this method in @see KillAllThread.java. it may be fascist, but
browsers may be fascist too, and a user may forget that she is connected.
- Author:
- Sindre Sørensen
-
disconnectMessage
-
-
font
-
-
fontsize
-
-
hostname
-
-
killAllThread
-
-
locale
-
-
localecho
-
-
login
-
-
MOOname
-
-
mooParser
-
-
MOOtcanPanel
-
-
port
-
-
reconnectMessage
-
-
sayPrefix
-
-
socket
-
-
socketInput
-
-
socketOutput
-
-
tmpUserStream
-
-
urlstring
-
-
userInput
-
-
userOutput
-
-
userParser
-
-
version
-
-
MOOtcan()
-
-
destroy()
-
-
init()
-
-
start()
-
-
stop()
-
version
static final String version
hostname
String hostname
port
int port
login
String login
MOOname
String MOOname
locale
String locale
font
String font
fontsize
int fontsize
localecho
boolean localecho
disconnectMessage
String disconnectMessage
reconnectMessage
String reconnectMessage
sayPrefix
String sayPrefix
socket
Socket socket
socketOutput
OutputStream socketOutput
userOutput
OutputStream userOutput
socketInput
InputStream socketInput
userInput
InputStream userInput
tmpUserStream
DataOutputStream tmpUserStream
urlstring
String urlstring
MOOtcanPanel
MOOtcanPanel MOOtcanPanel
mooParser
MooParser mooParser
userParser
UserParser userParser
killAllThread
KillAllThread killAllThread
MOOtcan
public MOOtcan()
init
public void init()
- Overrides:
- init in class Applet
start
public void start()
- Overrides:
- start in class Applet
stop
public void stop()
- Overrides:
- stop in class Applet
destroy
public void destroy()
- Overrides:
- destroy in class Applet
All Packages Class Hierarchy This Package Previous Next Index