Home | Trees | Index | Help |
|
---|
Package twisted :: Package manhole :: Module telnet :: Class Shell |
|
BaseProtocol
--+ |Protocol
--+ |Telnet
--+ | Shell
Method Summary | |
---|---|
checkUserAndPass(self,
username,
password)
| |
I will write a welcomeMessage and loginPrompt to the client. | |
doCommand(self,
cmd)
| |
Called after the user succesfully logged in. | |
The default 'command processing' mode. | |
Write some data to the transport. | |
Inherited from Telnet | |
Called whenever data is received. | |
| |
| |
| |
| |
| |
| |
Override me to return a 'login:'-type prompt. | |
I take a chunk of data and delegate out to telnet_* methods by way of processLine. | |
I call a method that looks like 'telnet_*' where '*' is filled in by the current mode. | |
I accept a password as an argument, and check it with the checkUserAndPass method. | |
I take a username, set it to the 'self.username' attribute, print out a password prompt, and switch to 'Password' mode. | |
Override me to return a string which will be sent to the client before login. | |
Inherited from Protocol | |
(Deprecated) | |
Called when the connection is shut down. | |
Inherited from BaseProtocol | |
Make a connection to a transport and a server. |
Class Variable Summary | |
---|---|
Inherited from Telnet | |
str |
buffer = ''
|
list |
delimiters = ['\r\n', '\r\x00']
|
int |
echo = 0 |
int |
gotIAC = 0 |
NoneType |
iacByte = None |
NoneType |
lastLine = None |
str |
mode = 'User'
|
Inherited from Protocol | |
tuple |
__implements__ = (<class twisted.internet.interfaces.IPr...
|
Inherited from BaseProtocol | |
int |
connected = 0 |
NoneType |
transport = None |
Method Details |
---|
connectionMade(self)I will write a welcomeMessage and loginPrompt to the client.
|
loggedIn(self)Called after the user succesfully logged in. Override in subclasses.
|
telnet_Command(self, cmd)The default 'command processing' mode. You probably want to override me.
|
write(self, data)Write some data to the transport.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:08:25 2004 | http://epydoc.sf.net |