|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.wimpi.modbus.net.ModbusSerialListener
public class ModbusSerialListener
Class that implements a ModbusTCPListener.
If listening, it accepts incoming requests
passing them on to be handled.
| Field Summary | |
|---|---|
private static int |
c_RequestCounter
|
private boolean |
m_Listening
|
private SerialConnection |
m_SerialCon
|
private static int |
REQUESTS_TOGC
|
| Constructor Summary | |
|---|---|
ModbusSerialListener(SerialParameters params)
Constructs a new ModbusSerialListener instance. |
|
| Method Summary | |
|---|---|
private void |
count()
|
boolean |
isListening()
Tests if this ModbusTCPListener is listening and accepting incoming connections. |
private void |
listen()
Listen to incoming messages. |
void |
setListening(boolean b)
Sets the listening flag of this ModbusTCPListener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean m_Listening
private SerialConnection m_SerialCon
private static int c_RequestCounter
private static final int REQUESTS_TOGC
| Constructor Detail |
|---|
public ModbusSerialListener(SerialParameters params)
params - a SerialParameters instance.| Method Detail |
|---|
private void listen()
public void setListening(boolean b)
b - true if listening (and accepting incoming connections),
false otherwise.public boolean isListening()
private void count()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||