public abstract class TcpBuilder<T,S extends TcpBuilder<T,S>> extends Builder<T,S>
| Modifier | Constructor and Description |
|---|---|
protected |
TcpBuilder(java.lang.String hostAddress,
int port)
Constructor of the TCP/IP Settings Builder, for connecting M-Bus devices over TCP/IP.
|
| Modifier and Type | Method and Description |
|---|---|
protected TransportLayer |
buildTransportLayer()
Build the TransportLayer with the given settings.
|
S |
setConnectionTimeout(int connectionTimeout)
Sets the TCP connection timeout.
|
S |
setHostAddress(java.lang.String hostAddress)
Sets the IP host address of the device
|
S |
setPort(int port)
Sets the TCP port of this communication
|
build, self, setTimeoutprotected TcpBuilder(java.lang.String hostAddress,
int port)
hostAddress - examples for IP host address port are "127.0.0.1, localhost, ..."port - the TCP port of the hostpublic S setPort(int port)
port - the TCP port of the hostpublic S setHostAddress(java.lang.String hostAddress)
hostAddress - examples for IP host address port are "127.0.0.1, localhost, ..."public S setConnectionTimeout(int connectionTimeout)
connectionTimeout - the TCP connection timeoutprotected TransportLayer buildTransportLayer()
BuilderbuildTransportLayer in class Builder<T,S extends TcpBuilder<T,S>>