public class ModbusUDPListener extends Object
| 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 |
|---|---|
int |
getPort()
Returns the number of the port this ModbusUDPListener
is listening to.
|
boolean |
isListening()
Tests if this ModbusTCPListener is listening
and accepting incoming connections.
|
void |
setPort(int port)
Sets the number of the port this ModbusUDPListener
is listening to.
|
void |
start()
Starts this ModbusUDPListener.
|
void |
stop()
Stops this ModbusUDPListener.
|
public ModbusUDPListener()
public ModbusUDPListener(InetAddress ifc)
ifc - an InetAddress instance.public int getPort()
public void setPort(int port)
port - the number of the IP port as int.public void start()
public void stop()
public boolean isListening()
Copyright © 2017. All rights reserved.