Package bitfling :: Module xmlrpcstuff :: Class ServerChannel
[show private | hide private]
[frames | no frames]

Type ServerChannel

object --+    
         |    
   Channel --+
             |
            ServerChannel


Method Summary
  __init__(self, chanid, peeraddr, username)
  readall(self, amount)
  XMLRPCLoop(self, conn)
Main loop that deals with the XML-RPC data
    Inherited from Channel
  __del__(self)
str __repr__(self)
Return a string representation of this object, for debugging.
  close(self)
Close the channel.
  exec_command(self, command)
Execute a command on the server.
int fileno(self)
Returns an OS-level file descriptor which can be used for polling, but but not for reading or writing).
int get_id(self)
Return the ID # for this channel.
str get_name(self)
Get the name of this channel that was previously set by set_name.
  get_pty(self, term, width, height)
Request a pseudo-terminal from the server.
Transport get_transport(self)
Return the Transport associated with this channel.
tuple(str, int) getpeername(self)
Return the address of the remote side of this Channel, if possible.
float gettimeout(self)
Returns the timeout in seconds (as a float) associated with socket operations, or None if no timeout is set.
  invoke_shell(self)
Request an interactive shell session on this channel.
  invoke_subsystem(self, subsystem)
Request a subsystem on the server (for example, sftp).
ChannelFile makefile(self, *params)
Return a file-like object associated with this channel.
ChannelFile makefile_stderr(self, *params)
Return a file-like object associated with this channel's stderr stream.
str recv(self, nbytes)
Receive data from the channel.
int recv_exit_status(self)
Return the exit status from the process on the server.
boolean recv_ready(self)
Returns true if data is buffered and ready to be read from this channel.
str recv_stderr(self, nbytes)
Receive data from the channel's stderr stream.
boolean recv_stderr_ready(self)
Returns true if data is buffered and ready to be read from this channel's stderr stream.
  request_x11(self, screen_number, auth_protocol, auth_cookie, single_connection, handler)
Request an x11 session on this channel.
  resize_pty(self, width, height)
Resize the pseudo-terminal.
int send(self, s)
Send data to the channel.
  send_exit_status(self, status)
Send the exit status of an executed command to the client.
int send_stderr(self, s)
Send data to the channel on the "stderr" stream.
  sendall(self, s)
Send data to the channel, without allowing partial results.
  sendall_stderr(self, s)
Send data to the channel's "stderr" stream, without allowing partial results.
bool set_combine_stderr(self, combine)
Set whether stderr should be combined into stdout on this channel.
  set_name(self, name)
Set a name for this channel.
  setblocking(self, blocking)
Set blocking or non-blocking mode of the channel: if blocking is 0, the channel is set to non-blocking mode; otherwise it's set to blocking mode.
  settimeout(self, timeout)
Set a timeout on blocking read/write operations.
  shutdown(self, how)
Shut down one or both halves of the connection.
  shutdown_read(self)
Shutdown the receiving side of this socket, closing the stream in the incoming direction.
  shutdown_write(self)
Shutdown the sending side of this socket, closing the stream in the outgoing direction.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

XMLRPCLoop(self, conn)

Main loop that deals with the XML-RPC data
Parameters:
conn - The connectionthread object we are working for

Generated by Epydoc 2.1 on Fri Aug 15 18:58:30 2008 http://epydoc.sf.net