steveohara / j2mod

Enhanced Modbus library implemented in the Java programming language
Apache License 2.0
265 stars 111 forks source link

No way to name the slave listener thread #80

Closed NogginBops closed 6 years ago

NogginBops commented 6 years ago

There should be a way to name the slave listener thread. And it should probably have a good default name.

steveohara commented 6 years ago

I've added suitable thread names to all the listeners (and message handlers) and added methods to the ModbusSlave class to get and set the thread name. The name is applied to the thread when it is started so changes to the name after it has started will have no effect.