Next: , Previous: Storage Methods, Up: Core Methods



5.1.3 Server Methods

— Method on Server: init ozName storageRef languageStringsObjectRef storageObjectRef startRoom

As per usual, except for storageObjectRef, which passes extra, better capabilities to the Server object, and startRoom, which passes and object reference to the player starting room.

— Method on Server: start args modules hold realStart

As with Storage, except hold, which returns a variable that remains unbound until the server is shut down.

realStart is used to say that this is the real start call, rather then the normal one that happens when the object is created.

— Method on Server: stop

Stops the server; also binds hold from the start method.

— Method on Server: handleLogin acceptObject playerRef outputPort acceptProc

Deals with a user's attempt to log in, including creating new player objects if necessary. More details in the source.

— Method on Server: upgradeStorage newClass convert

Storage calls this to get the server to upgrade it during an upgradeAll call. No user servicable parts inside.

— Method on Server: changePassword player oldPassword newPassword

If the stored password for the login name player matches oldPassword, changes it to newPassword.