bibliopixel.util.server_cache module¶
-
class
bibliopixel.util.server_cache.
ServerCache
(constructor, **kwds)[source]¶ Bases:
object
A class that caches servers by key so you don’t keep closing and re-opening the same server and interrupting your connection.
The exact nature of the key depends on the sort of server. For example, for a server socket like SimPixel, it would be just a port number, whereas for a UDP connection like Art-Net, it would be a port, ip_address pair.