public class DlmsServer
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Class and Description |
---|---|
static class |
DlmsServer.TcpServerBuilder
Builder to create a TCP physical device/server.
|
static class |
DlmsServer.TcpServerSettingsImpl |
Modifier and Type | Method and Description |
---|---|
void |
close()
Stops the server immediately.
|
void |
shutdown()
Sends disconnect messages to all connected clients.
|
static DlmsServer.TcpServerBuilder |
tcpServerBuilder()
Create a new TCP server builder.
|
static DlmsServer.TcpServerBuilder |
tcpServerBuilder(int port)
Create a new TCP server builder.
|
public void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
java.io.IOException
public void shutdown() throws java.io.IOException
java.io.IOException
- if an exception occurs, while releasing the resources.public static DlmsServer.TcpServerBuilder tcpServerBuilder(int port)
port
- the TCP port the server starts listening on.public static DlmsServer.TcpServerBuilder tcpServerBuilder()