bibliopixel.util.udp module¶
A server that queues and sends UDP requests for a specific port on a separate thread.
-
class
bibliopixel.util.udp.
QueuedReceiver
(*args, **kwds)[source]¶ Bases:
bibliopixel.util.udp.Receiver
Receive UDP messages in a thread and put them on a queue.
-
class
bibliopixel.util.udp.
QueuedSender
(address, **kwds)[source]¶ Bases:
bibliopixel.util.threads.runnable.QueueHandler
The UPD protocol is stateless but not necessarily thread-safe.
QueuedSender
uses a queue to send all UDP messages to one address from a new thread.
-
class
bibliopixel.util.udp.
Receiver
(address, bufsize=4096, receive=None, **kwds)[source]¶ Bases:
bibliopixel.util.threads.runnable.LoopThread
Receive UDP messages in a thread