public class TCPSlaveConnection extends Object
| Constructor and Description |
|---|
TCPSlaveConnection(Socket socket)
Constructs a TCPSlaveConnection instance
using a given socket instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this TCPSlaveConnection.
|
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.
|
public TCPSlaveConnection(Socket socket)
socket - the socket instance to be used for communication.public void close()
public ModbusTransport getModbusTransport()
public int getTimeout()
public void setTimeout(int timeout)
timeout - the timeout as int.public int getPort()
public InetAddress getAddress()
public boolean isConnected()
Copyright © 2017. All rights reserved.