A session is a nice container of all the stuff that encompasses a user
session: aliases, actions, commands...
All input and output goes through the Session object. Almost
everything happens through the Session.
| Method Summary |
| |
__init__(self)
Initialize. |
| |
__repr__(self)
|
| |
addToDataBuffer(self,
text)
Adds data to the buffer by thinking about everything in terms of
lines. |
| |
clear(self)
Clears the session (except for connections). |
| |
clearDataBuffer(self)
Clears the databuffer. |
| list of strings
|
getDataBuffer(self)
Returns the DataBuffer instance for this session. |
| string
|
getName(self)
Returns the name of the session. |
| boolean
|
getSnoop(self)
Returns whether or not we show text when we're not the current
session. |
| SocketCommunicator
|
getSocketCommunicator(self)
Returns the socket communicator. |
| string
|
getStatus(self)
Returns status of the session. |
| |
getWriteFileInfo(self,
args)
Implements the write_hook. |
| |
handleMudData(self,
input)
Handles input coming from the mud. |
| |
handleUserData(self,
input,
internal)
Handles input in the context of this session specifically. |
| boolean
|
isConnected(self)
Tells you whether (1) or not (0) a session has a connection. |
| |
prompt(self)
Deals with printing a prompt if this is the common session. |
| |
resizeDataBuffer(self,
newsize)
Changes the buffer max. |
| |
setName(self,
name)
Sets the name of the session. |
| |
setSnoop(self,
snoop)
Sets whether or not we show text when we're not the current
session. |
| |
setSocketCommunicator(self,
sc)
Sets the socket communicator. |
| |
shutdown(self,
args)
Shuts down the session, shuts down the underlying
SocketCommunicator. |
| |
writeSocket(self,
message,
tag)
Writes data to the socket. |