|
jamod at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.wimpi.modbus.net.TCPSlaveConnection
Class that implements a TCPSlaveConnection.
Constructor Summary | |
TCPSlaveConnection(java.net.Socket socket)
Constructs a TCPSlaveConnection instance using a given socket instance. |
Method Summary | |
void |
close()
Closes this TCPSlaveConnection. |
java.net.InetAddress |
getAddress()
Returns the destination InetAddress of this TCPMasterConnection. |
ModbusTransport |
getModbusTransport()
Returns the ModbusTransport associated with this TCPMasterConnection. |
int |
getPort()
Returns the destination port of this TCPMasterConnection. |
int |
getTimeout()
Returns the timeout for this TCPMasterConnection. |
boolean |
isConnected()
Tests if this TCPMasterConnection is connected. |
void |
setTimeout(int timeout)
Sets the timeout for this TCPSlaveConnection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TCPSlaveConnection(java.net.Socket socket)
socket
- the socket instance to be used for communication.Method Detail |
public void close()
public ModbusTransport getModbusTransport()
public int getTimeout()
public void setTimeout(int timeout)
timeout
- the timeout as int.public int getPort()
public java.net.InetAddress getAddress()
public boolean isConnected()
|
jamod at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |