Package bitfling :: Module bitfling :: Class BitFlingService
[hide private]
[frames] | no frames]

Class BitFlingService

source code

        object --+                
                 |                
threading._Verbose --+            
                     |            
      threading.Thread --+        
                         |        
        xmlrpcstuff.Server --+    
                             |    
                 XMLRPCService --+
                                 |
                                BitFlingService

Nested Classes [hide private]

Inherited from xmlrpcstuff.Server: ConnectionThread, Message

Instance Methods [hide private]
 
__init__(self, mainwin, host, port, servercert)
Creates the listening thread and infrastructure.
source code
 
stashhandle(self, context, comm) source code
 
gethandle(self, context, num) source code
 
exp_scan(self, context) source code
 
exp_getversion(self, context) source code
 
exp_deviceopen(self, port, baud, timeout, hardwareflow, softwareflow, context) source code
 
exp_deviceclose(self, handle, context) source code
 
exp_devicesetbaudrate(self, handle, rate, context) source code
 
exp_devicesetdtr(self, handle, dtr, context) source code
 
exp_devicesetrts(self, handle, rts, context) source code
 
exp_devicewrite(self, handle, data, context) source code
 
exp_devicesendatcommand(self, handle, atcommand, ignoreerror, context)
Special handling for empty lists and exceptions
source code
 
exp_devicereaduntil(self, handle, char, numfailures, context) source code
 
exp_deviceread(self, handle, numchars, context) source code
 
exp_devicereadsome(self, handle, numchars, context) source code
 
exp_devicewritethenreaduntil(self, handle, data, char, numfailures, context) source code

Inherited from XMLRPCService: OnLog, OnLogException, OnMethodDispatch, OnNewAccept, OnNewUser

Inherited from xmlrpcstuff.Server: OnConnectionClose, OnUserMessage, OnXmlRpcRequest, processmessage, run, run22, run23, shutdown

Inherited from threading.Thread: __repr__, getName, isAlive, isDaemon, join, setDaemon, setName, start

Inherited from threading.Thread (private): _set_daemon

Inherited from threading._Verbose (private): _note

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, mainwin, host, port, servercert)
(Constructor)

source code 

Creates the listening thread and infrastructure. Don't forget to call start() if you want anything to be processed! You probably also want to call setDaemon(). Remember to load a certificate into the sslcontext.

Parameters:
  • connectionthreadcount - How many threads are being used. If new connections arrive while the existing threads are busy in connections, then they will be ignored
  • timecheck - How often shutdown requests are checked for in the main thread (only valid on Python 2.3+)
  • connectionidlebreak - If an SSH connection is idle for this amount of time then it is closed
Overrides: object.__init__
(inherited documentation)