Open tperale opened 3 years ago
This issue need to be solved before the implementation of https://github.com/Sprtch/huron/issues/35 can start.
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.
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: