kochedykov / jlibmodbus

JLibModbus - is an implementation of the Modbus protocol v1.1b in java language. Java modbus library. It works. Welcome.
http://kochedykov.github.io/jlibmodbus/
Apache License 2.0
307 stars 128 forks source link

ModbusSlaveTCP/Fix binding to specific InetAddress #61

Closed r3mv closed 3 years ago

r3mv commented 3 years ago

InetAddress in TcpParameters was not taken into account when creating Modbus Slave (server). This patch allows to take the address in account. 2 parameter to ServerSocket, backlog, is set to 0 as the doc says it will default to implementation specific default.