|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.wimpi.modbus.net.ModbusUDPListener
public class ModbusUDPListener
Class that implements a ModbusUDPListener.
| Nested Class Summary | |
|---|---|
(package private) class |
ModbusUDPListener.ModbusUDPHandler
|
| Field Summary | |
|---|---|
private ModbusUDPListener.ModbusUDPHandler |
m_Handler
|
private Thread |
m_HandlerThread
|
private InetAddress |
m_Interface
|
private boolean |
m_Listening
|
private int |
m_Port
|
private UDPSlaveTerminal |
m_Terminal
|
| Constructor Summary | |
|---|---|
ModbusUDPListener()
Constructs a new ModbusUDPListener instance. |
|
ModbusUDPListener(InetAddress ifc)
Create a new ModbusUDPListener instance listening to the given interface address. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private UDPSlaveTerminal m_Terminal
private ModbusUDPListener.ModbusUDPHandler m_Handler
private Thread m_HandlerThread
private int m_Port
private boolean m_Listening
private InetAddress m_Interface
| Constructor Detail |
|---|
public ModbusUDPListener()
public ModbusUDPListener(InetAddress ifc)
ifc - an InetAddress instance.| Method Detail |
|---|
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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||