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:
@version@ (@date@)
Author:
Dieter Wimberger

Constructor Summary
ModbusSerialListener(SerialParameters params)
          Constructs a new ModbusSerialListener instance.
 
Method Summary
 boolean isListening()
          Tests if this ModbusTCPListener is listening and accepting incoming connections.
 void setListening(boolean b)
          Sets the listening flag of this ModbusTCPListener.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModbusSerialListener

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

Parameters:
params - a SerialParameters instance.
Method Detail

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.


Copyright © 2010. All Rights Reserved.