| Trees | Index | Help |
|
|---|
| Module net :: Class SocketCommunicator |
|
| Method Summary | |
|---|---|
__init__(self)
| |
__repr__(self)
| |
Takes in a host and a port and connects the socket. | |
Handles incoming data from the mud. | |
| string |
Removes telnet negotiation stuff from the stream and handles it. |
logControl(self,
str)
| |
Polls a socket and returns any data sitting there. | |
Sets the local session. | |
Sets the session name. | |
Shuts down the thread polling the socket connection and the socket as well. | |
Writes data to the mud. | |
| Method Details |
|---|
connect(self, host, port, sessionname)Takes in a host and a port and connects the socket.
|
handleData(self, data)Handles incoming data from the mud. We wrap it in a MudEvent and toss it on the queue.
|
handleNego(self, data)Removes telnet negotiation stuff from the stream and handles it.
|
run(self)Polls a socket and returns any data sitting there. |
setSession(self, ses)Sets the local session. Each SocketCommunicator is matched up with a Session object. This sets the Session object for this SocketCommunicator so we know who to pass information from the mud off to.
|
setSessionName(self, name)Sets the session name.
|
shutdown(self)Shuts down the thread polling the socket connection and the socket as well. |
write(self, data, convert=1)Writes data to the mud.
|
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 1.1 on Mon Apr 28 21:11:25 2003 | http://epydoc.sf.net |