eww.dispatch

Eww’s dispatch thread. Listens for incoming connections and creates consoles for them.

class eww.dispatch.DispatchThread(host, port, timeout=1)[source]

Bases: eww.stoppable_thread.StoppableThread

DispatchThread runs the connection listener thread. As a StoppableThread subclass, this thread must check for the .stop_requested flag.

__init__(host, port, timeout=1)[source]

Init.

Parameters:
  • host (str) – The interface to listen for connections on.
  • port (int) – The port to listen for connections on.
  • timeout (float) – Frequency, in seconds, to check for a stop or remove request.
run()[source]

Main thread loop.

Returns:None