Package SpecClient :: Module SpecConnectionsManager :: Class _SpecConnectionsManager
[hide private]
[frames] | no frames]

Class _SpecConnectionsManager

source code

Class for managing connections to Spec

The poll() method should be called inside a GUI loop during idle time. Unlike the threaded class, the poll method will also dispatch SpecClient events

Warning: should never be instanciated directly ; use the module level SpecConnectionsManager() function instead.

Instance Methods [hide private]
 
__init__(self)
Constructor
source code
 
poll(self, timeout=0.01)
Poll the asynchronous socket connections and dispatch incomming events
source code
 
stop(self)
Stop the connections manager thread and dereferences all connections
source code
 
getConnection(self, specVersion)
Return a SpecConnection object
source code
 
closeConnection(self, specVersion) source code
 
closeConnections(self) source code
Method Details [hide private]

getConnection(self, specVersion)

source code 

Return a SpecConnection object

Arguments: specVersion -- a string in the 'host:port' form