The ServerUser interface prescribes behaviours which
must be defined by any user connection used with
the Imaginary JavaMud Server. Specifically, it
requires that the user connection be able to handle
user input somehow.
Created: 27 September 1996
Last modified: 27 Septembet 1996
This method is triggered by the server when the
user first connects.
The server calls this method every server cycle. The
mudlib implementation is expected to be queueing up user
input as it gets it (as opposed to processing it immediately
as it comes across the net) for synchronicity's sake.
The mudlib implementation therefore should use this method
to pull a command off the queue and process it.
The server calls this method just after creating an instance
of the mudlib user connection object that implements this
interface. Normally, the socket would be passed as an
argument to the constructor. Because the Server class does
not know the name of the user connection implementation class
at compile time, it has to use the Class.forName.newInstance()
construct, which means the default constructor must be used.
This method thus allows the server to pass the mudlib
implementation the socket to use for communication with the
s - the socket connected to the user's machine
java.io.IOException - thrown if a problem creating I/O streams occurs