93949596979899100101102103
//3. create a listener with 3 threads in pool if (Modbus.debug) System.out.println("Listening..."); listener = new ModbusTCPListener(3); listener.setPort(port); listener.start(); } catch (Exception ex) { ex.printStackTrace(); } }//main
7677787980818283848586