Connection Objects: /obj/connection
Connection objects are associated with exactly one active network connection.
If the connection is considered to be "logged in," then the connection is also
associated with a MOO object representing a player.
Besides maintaining all of the relevant information about a connection, these
objects are also responsible for processing lines of input received from the
connection. Most of the special MOO command parsing is performed here.
Connection objects have the following interface:
notify()
- send text to the user
get_delimiters()
- return the current output PREFIX and SUFFIX
prefix()
- send the connection's current output PREFIX (if any)
suffix()
- send the connection's current output SUFFIX (if any)
recycle_player()
- disconnect the user due to being recycled
redirect_player()
- disconnect the user due to being redirected to a new connection
get_connection_name()
- return a descriptive string for the connection
seed_onc()
- prepare to be connected to a remote host via
onc()
seed_read()
- prepare to send the next line of input to a suspended task
unseed()
- a suspended
read()
or onc()
task was killed
receive_message()
- called by DGD when a line of input is received
get_connected_seconds()
- return the number of seconds this user has been connected
get_idle_seconds()
- return the number of seconds this user has been idle
boot_player()
- terminate this user's connection
shutdown()
- terminate this user's connection because the server is being shutdown
rob@ccs.neu.edu