public class ModbusUDPListener extends AbstractModbusListener
| Constructor and Description |
|---|
ModbusUDPListener()
Constructs a new ModbusUDPListener instance.
|
ModbusUDPListener(InetAddress ifc)
Create a new ModbusUDPListener instance listening to the given
interface address.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Starts this ModbusUDPListener.
|
void |
setTimeout(int timeout)
Sets the socket timeout
|
void |
stop()
Stop the listener thread for this ModbusListener instance.
|
getAddress, getError, getPort, getProcessImage, getThreadName, getTimeout, isListening, setAddress, setListening, setPort, setThreadNamepublic ModbusUDPListener(InetAddress ifc)
ifc - an InetAddress instance.public ModbusUDPListener()
public void setTimeout(int timeout)
AbstractModbusListenersetTimeout in class AbstractModbusListenertimeout - Timeout in millisecondspublic void run()
public void stop()
AbstractModbusListenerstop in class AbstractModbusListenerCopyright © 2025. All Rights Reserved.