|
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.TCPMasterConnection
Class that implements a TCPMasterConnection.
Constructor Summary | |
TCPMasterConnection(java.net.InetAddress adr)
Constructs a TCPMasterConnection instance with a given destination address. |
Method Summary | |
void |
close()
Closes this TCPMasterConnection. |
void |
connect()
Opens this TCPMasterConnection. |
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 |
setAddress(java.net.InetAddress adr)
Sets the destination InetAddress of this TCPMasterConnection. |
void |
setPort(int port)
Sets the destination port of this TCPMasterConnection. |
void |
setTimeout(int timeout)
Sets the timeout for this TCPMasterConnection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TCPMasterConnection(java.net.InetAddress adr)
adr
- the destination InetAddress.Method Detail |
public void connect() throws java.lang.Exception
java.lang.Exception
- if there is a network failure.public void close()
public ModbusTransport getModbusTransport()
public int getTimeout()
public void setTimeout(int timeout)
timeout
- the timeout as int.public int getPort()
public void setPort(int port)
port
- the port number as int.public java.net.InetAddress getAddress()
public void setAddress(java.net.InetAddress adr)
adr
- the destination address as InetAddress.public boolean isConnected()
|
jamod at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |