Package diffpy :: Package pdfgui :: Package control :: Module serverhost :: Class ServerHost :: Class Server
[hide private]
[frames] | no frames]

Class Server

source code

object --+
         |
        ServerHost.Server

Server is the local represetative of a remote pdfserver

pdfserver: a xmlrpclib.ServerProxy to pdfserver
address: a host:port string
busy: True if it is in use, otherwise False
running: True if it is running
connection: a ssh2 connection to remote host
port: remote port where pdfserver is servicing



Instance Methods [hide private]
 
__init__(self, connection)
Initialize the remote server ...
source code
 
__start(self)
Start remote pdfserver.
source code
 
connect(self)
Set up XMLRPC ServerProxy and test connection.
source code
 
close(self)
Kill the server
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, connection)
(Constructor)

source code 
Initialize the remote server 

connection -- a ssh2 connection to remote host

Overrides: object.__init__

__start(self)

source code 
Start remote pdfserver. pdfserver.py must be in the user's PATH.
It chooses the remote port on which it is running.