Filter - Scauting-Burgum/ScautNet-python GitHub Wiki
The Filter-class is used inside a pipeline in converting data.
This method can be used to stop the filter's threads.
This method starts the filter's threads.
This method puts data into sending_thread.queue
-
data; the data to be pushed.
This method gets data from receiving_thread.queue
-
timeout; Once this timeout expires,queue.Emptywill be raised. (Defaults to 1 second)
-
queue.Empty; When no data can be pulled before the timeout's elapsed.
Returns True if the filter's threads are alive and Filter.kill hasn't been called,
otherwise returns False.
The thread that processes data coming from the connection.
- A start method;
receiving_thread.start() - A life-checking method;
receiving_thread.is_alive() - A queue;
receiving_thread.queue
The thread that processes data going to the connection.
- A start method;
sending_thread.start() - A life-checking method;
sending_thread.is_alive() - A queue;
sending_thread.queue