TCP server that listens for connections and routes the messages to outstations.
More...
TCP server that listens for connections and routes the messages to outstations.
To add outstations to it, use OutstationServer.AddOutstation. Once all the outstations are added, the server can be started with OutstationServer.Bind.
OutstationServer.Shutdown() is used to gracefully shutdown all the outstations and the server.
◆ AddOutstation()
Add an outstation to the server.
The returned Outstation can be used to modify points of the outstation.
In order for the outstation to run, the TCP server must be running. Use OutstationServer.Bind to run it.
- Parameters
-
config | Outstation configuration |
application | Outstation application callbacks |
information | Outstation information callbacks |
controlHandler | Outstation control handler |
listener | Listener for the connection state |
filter | Address filter |
- Returns
- Outstation handle
- Exceptions
-
◆ Bind()
void dnp3.OutstationServer.Bind |
( |
| ) |
|
|
inline |
Bind the server to the port and starts listening. Also starts all the outstations associated to it.
- Exceptions
-
◆ CreateTcpServer()
Create a new TCP server.
To start it, use OutstationServer.Bind.
- Parameters
-
runtime | Runtime to execute the server on |
linkErrorMode | Controls how link errors are handled with respect to the TCP session |
address | Address to bind the server to e.g. 127.0.0.1:20000 |
- Returns
- New TCP server instance
- Exceptions
-
◆ CreateTlsServer()
Create a new TLS server.
To start it, use OutstationServer.Bind.
- Parameters
-
runtime | Runtime to execute the server on |
linkErrorMode | Controls how link errors are handled with respect to the session |
address | Address to bind the server to e.g. 127.0.0.1:20000 |
tlsConfig | TLS server configuration |
- Returns
- New TLS server instance
- Exceptions
-
◆ Shutdown()
void dnp3.OutstationServer.Shutdown |
( |
| ) |
|
|
inline |
Gracefully shutdown all the outstations associated to this server, stops the server and release resources.
The documentation for this class was generated from the following file: