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

Variable Index

 o disconnectMessage
 o font
 o fontsize
 o hostname
 o killAllThread
 o locale
 o localecho
 o login
 o MOOname
 o mooParser
 o MOOtcanPanel
 o port
 o reconnectMessage
 o sayPrefix
 o socket
 o socketInput
 o socketOutput
 o tmpUserStream
 o urlstring
 o userInput
 o userOutput
 o userParser
 o version

Constructor Index

 o MOOtcan()

Method Index

 o destroy()
 o init()
 o start()
 o stop()

Variables

 o version
 static final String version
 o hostname
 String hostname
 o port
 int port
 o login
 String login
 o MOOname
 String MOOname
 o locale
 String locale
 o font
 String font
 o fontsize
 int fontsize
 o localecho
 boolean localecho
 o disconnectMessage
 String disconnectMessage
 o reconnectMessage
 String reconnectMessage
 o sayPrefix
 String sayPrefix
 o socket
 Socket socket
 o socketOutput
 OutputStream socketOutput
 o userOutput
 OutputStream userOutput
 o socketInput
 InputStream socketInput
 o userInput
 InputStream userInput
 o tmpUserStream
 DataOutputStream tmpUserStream
 o urlstring
 String urlstring
 o MOOtcanPanel
 MOOtcanPanel MOOtcanPanel
 o mooParser
 MooParser mooParser
 o userParser
 UserParser userParser
 o killAllThread
 KillAllThread killAllThread

Constructors

 o MOOtcan
 public MOOtcan()

Methods

 o init
 public void init()
Overrides:
init in class Applet
 o start
 public void start()
Overrides:
start in class Applet
 o stop
 public void stop()
Overrides:
stop in class Applet
 o destroy
 public void destroy()
Overrides:
destroy in class Applet

All Packages  Class Hierarchy  This Package  Previous  Next  Index