|
- __init__(self, host='', port=0)
- new instance.
host if specified, is the host we connect to. port, if
specified is an alternate port to the default vmsplib.VPORT.
- auth(self)
- send an auth request to the server.
if successful, we can then send a response to the
generated challenge.
- challresp(self, schall)
- respond to an authentication challenge.
ideally, the shared secret should not be within the client
or server, but on an accessible file, preferably protected.
The user should also be gotten from somewhere safe, preferably
the same place.
- close(self)
- Close server connection.
- connect(self, host='localhost', port=0)
- Connect to a host on a given port.
If we have a host:port, and no port specified, the :port
will be used.
Automatically called by __init__ if we specify a host.
- docmd(self, cmd, args='')
- Send a command, and return its response code.
- ehlo(self, name='')
- VMSP 'ehlo' command.
Hostname to send for this command defaults to the
FQDN of the local host.
- get(self, item)
- send a GET request to the server.
if successful, we get the item, or an
error message.
- getreply(self)
- Get a reply from the server.
- has_extn(self, opt)
- Does the server support a given VMSP service extension?
- helo(self, name='')
- VMSP 'helo' command.
Hostname to send for this command defaults to the
FQDN of the local host.
- help(self, args='')
- VMSP 'help' command.
Returns help text from server.
- list(self)
- send a list request to the server.
if successful, get a list back, with detail
depending on our authentication status
- noop(self)
- putcmd(self, cmd, args='')
- Send a command to the server.
- quit(self)
- Terminate VMSP session.
- send(self, str)
- Send `str' to the server.
- set_debuglevel(self, debuglevel)
- Set the debug output level.
If true, output everything.
- testserver(self)
- Test out the server/client operation
|