dnp3
0.9.0
|
TCP server that listens for connections and routes the messages to outstations. More...
Public Member Functions | |
TcpServer (Runtime runtime, LinkErrorMode linkErrorMode, string address) | |
Create a new TCP server. More... | |
void | Shutdown () |
Gracefully shutdown all the outstations associated to this server, stops the server and release resources. More... | |
Outstation | AddOutstation (OutstationConfig config, EventBufferConfig eventConfig, IOutstationApplication application, IOutstationInformation information, IControlHandler controlHandler, IConnectionStateListener listener, AddressFilter filter) |
Add an outstation to the server. More... | |
void | Bind () |
Bind the server to the port and starts listening. Also starts all the outstations associated to it. More... | |
TCP server that listens for connections and routes the messages to outstations.
To add outstations to it, use TcpServer.AddOutstation. Once all the outstations are added, the server can be started with TcpServer.Bind.
TcpServer.Shutdown() is used to gracefully shutdown all the outstations and the server.
|
inline |
Create a new TCP server.
To start it, use TcpServer.Bind.
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 |
ParamException |
|
inline |
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 TcpServer.Bind to run it.
config | Outstation configuration |
eventConfig | Event buffer configuration |
application | Outstation application callbacks |
information | Outstation information callbacks |
controlHandler | Outstation control handler |
listener | Listener for the connection state |
filter | Address filter |
ParamException |
|
inline |
Bind the server to the port and starts listening. Also starts all the outstations associated to it.
ParamException |
|
inline |
Gracefully shutdown all the outstations associated to this server, stops the server and release resources.