public static class DlmsServer.TcpServerBuilder extends ServerBuilder<DlmsServer.TcpServerBuilder>
ServerBuilder.ServerSettingsImpl
Modifier and Type | Method and Description |
---|---|
DlmsServer |
build()
Builds a new server and starts it, with the provided settings.
|
DlmsServer.TcpServerBuilder |
setSessionLayerFactory(ServerSessionLayerFactory sessionLayerFactory)
Set the server session layer factory.
|
DlmsServer.TcpServerBuilder |
setTcpPort(int port)
The port a client may access the server.
|
newServer, parseLogicalDevices, registerLogicalDevice, registerLogicalDevice, setConnectionListener, setInactivityTimeout, setMaxClients, setPropertiesTo, setRefernceingMethod, setResponseTimeout
public DlmsServer.TcpServerBuilder setSessionLayerFactory(ServerSessionLayerFactory sessionLayerFactory)
sessionLayerFactory
- the session layer factory.ServerSessionLayerFactories.newWrapperSessionLayerFactory()
,
ServerSessionLayerFactories.newHdlcSessionLayerFactory()
public DlmsServer.TcpServerBuilder setTcpPort(int port)
port
- the TCP port the server starts listening on.public DlmsServer build() throws java.io.IOException
ServerBuilder
build
in class ServerBuilder<DlmsServer.TcpServerBuilder>
java.io.IOException
- if an I/O exception occurs while starting the server.