| Home | Trees | Index | Help |
|
|---|
| Package lyntin :: Module net :: Class SocketCommunicator |
|
| Method Summary | |
|---|---|
__init__(self,
e,
ses,
host,
port)
| |
__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)
| |
While the connection hasn't been shut down, we spin through this loop retrieving data from the mud, | |
Sets the session name. | |
Shuts down the thread polling the socket connection and the socket as well. | |
Writes data to the mud after passing it through net_write_data_filter. | |
| 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)While the connection hasn't been shut down, we spin through this loop retrieving data from the mud, |
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 after passing it through net_write_data_filter.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Aug 9 09:17:42 2004 | http://epydoc.sf.net |