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.ReceiverReceive UDP messages in a thread and put them on a queue.
-
class
bibliopixel.util.udp.QueuedSender(address, **kwds)[source]¶ Bases:
bibliopixel.util.threads.runnable.QueueHandlerThe UPD protocol is stateless but not necessarily thread-safe.
QueuedSenderuses 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.LoopThreadReceive UDP messages in a thread