|
jamod at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.wimpi.modbus.net.ModbusTCPListener
Class that implements a ModbusTCPListener.
If listening, it accepts incoming requests
passing them on to be handled.
Constructor Summary | |
ModbusTCPListener(int poolsize)
Constructs a ModbusTCPListener instance. |
|
ModbusTCPListener(int poolsize,
java.net.InetAddress addr)
Constructs a ModbusTCPListener instance. |
Method Summary | |
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(java.net.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ModbusTCPListener(int poolsize)
poolsize
- the size of the ThreadPool used to handle
incoming requests.public ModbusTCPListener(int poolsize, java.net.InetAddress addr)
poolsize
- the size of the ThreadPool used to handle
incoming requests.addr
- the interface to use for listening.Method Detail |
public void setPort(int port)
port
- the number of the IP port as int.public void setAddress(java.net.InetAddress addr)
addr
- an InetAddress instance.public void start()
public void stop()
public void run()
run
in interface java.lang.Runnable
public boolean isListening()
|
jamod at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |