| Constructor and Description |
|---|
ModbusTCPListener(int poolsize)
Constructs a ModbusTCPListener instance.
|
ModbusTCPListener(int poolsize,
InetAddress addr)
Constructs a ModbusTCPListener instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isListening()
Tests if this ModbusTCPListener is listening
and accepting incoming connections.
|
void |
run()
Accepts incoming connections and handles then with
TCPConnectionHandler instances.
|
void |
setAddress(InetAddress addr)
Sets the address of the interface to be listened to.
|
void |
setPort(int port)
Sets the port to be listened to.
|
void |
start()
Starts this ModbusTCPListener.
|
void |
stop()
Stops this ModbusTCPListener.
|
public ModbusTCPListener(int poolsize)
poolsize - the size of the ThreadPool used to handle incoming requests.public ModbusTCPListener(int poolsize,
InetAddress addr)
poolsize - the size of the ThreadPool used to handle incoming requests.addr - the interface to use for listening.public void setPort(int port)
port - the number of the IP port as int.public void setAddress(InetAddress addr)
addr - an InetAddress instance.public void start()
public void stop()
public void run()
public boolean isListening()
Copyright © 2017. All rights reserved.