net.wimpi.modbus.net
Class ModbusSerialListener

java.lang.Object
  extended by net.wimpi.modbus.net.ModbusSerialListener

public class ModbusSerialListener
extends Object

Class that implements a ModbusTCPListener.
If listening, it accepts incoming requests passing them on to be handled.

Version:
1.2 (@date@)
Author:
Dieter Wimberger

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

m_Listening

private boolean m_Listening

m_SerialCon

private SerialConnection m_SerialCon

c_RequestCounter

private static int c_RequestCounter

REQUESTS_TOGC

private static final int REQUESTS_TOGC
See Also:
Constant Field Values
Constructor Detail

ModbusSerialListener

public ModbusSerialListener(SerialParameters params)
Constructs a new ModbusSerialListener instance.

Parameters:
params - a SerialParameters instance.
Method Detail

listen

private void listen()
Listen to incoming messages.


setListening

public void setListening(boolean b)
Sets the listening flag of this ModbusTCPListener.

Parameters:
b - true if listening (and accepting incoming connections), false otherwise.

isListening

public boolean isListening()
Tests if this ModbusTCPListener is listening and accepting incoming connections.

Returns:
true if listening (and accepting incoming connections), false otherwise.

count

private void count()


Copyright © 2012. All Rights Reserved.