Sprtch / victoria

🖨️ Printer daemon interface for Zebra printer
GNU General Public License v3.0
0 stars 0 forks source link

On the fly modification of the running printer threads #8

Open tperale opened 3 years ago

tperale commented 3 years ago

On the fly modificaiton of the "printer" threads require a rework of the program structure. All the messages will be sent to the "main" program thread and the print messages will then be dispatched to the correct "printer" thread with the help of a "Queue". The queue will help to make the difference between a print message or a control message to change the behaviour of the printer thread (changing address, port, destination, format, etc ...)

In the end it will allow:

tperale commented 3 years ago

This issue need to be solved before the implementation of https://github.com/Sprtch/huron/issues/35 can start.

tperale commented 3 years ago

Should the channel still exist in the end ? In the end all we need is the name of the destination printer, the channel introduces some sort of overhead that is not obvious to the user.