Callbacks to user code that determine how the server processes connections.
More...
#include <dnp3.h>
|
| void(* | accept )(const char *, dnp3_accept_handler_t *, void *) |
| | Filter the connection solely based on the remote address. More...
|
| |
| void(* | start )(const char *, dnp3_master_channel_t *, void *) |
| | Start a communication session that was previously accepted using only the socket address. More...
|
| |
| void(* | accept_with_link_id )(const char *, uint16_t, uint16_t, dnp3_identified_link_handler_t *, void *) |
| | Filter the connection based on the source and destination of the first link-layer frame. More...
|
| |
| void(* | start_with_link_id )(const char *, uint16_t, uint16_t, dnp3_master_channel_t *, void *) |
| | Start a communication session that was previously accepted using link identity information. More...
|
| |
| void(* | on_destroy )(void *arg) |
| | Callback when the underlying owner doesn't need the interface anymore. More...
|
| |
| void * | ctx |
| | Context data. More...
|
| |
Callbacks to user code that determine how the server processes connections.
◆ accept
Filter the connection solely based on the remote address.
- Parameters
-
| remote_addr | Socket address of the remote outstation, e.g. 192.168.0.22:51532 |
| acceptor | Class used to handle the accept |
| ctx | Context data |
◆ accept_with_link_id
Filter the connection based on the source and destination of the first link-layer frame.
- Parameters
-
| remote_addr | Socket address of the remote outstation, e.g. 192.168.0.22:51532 |
| source | Source address from the frame |
| destination | Destination address from the frame |
| acceptor | Class used to handle the accept |
| ctx | Context data |
◆ ctx
| void* dnp3_connection_handler_t::ctx |
◆ on_destroy
| void(* dnp3_connection_handler_t::on_destroy) (void *arg) |
Callback when the underlying owner doesn't need the interface anymore.
- Parameters
-
◆ start
Start a communication session that was previously accepted using only the socket address.
- Warning
- You must add associations and/or enable the channel from a different thread than this callback as those methods cannot be called on the Tokio runtime
- Parameters
-
| remote_addr | Socket address of the remote outstation, e.g. 192.168.0.22:51532 |
| channel | Class used to control the channel |
| ctx | Context data |
◆ start_with_link_id
| void(* dnp3_connection_handler_t::start_with_link_id) (const char *, uint16_t, uint16_t, dnp3_master_channel_t *, void *) |
Start a communication session that was previously accepted using link identity information.
- Warning
- You must add associations and/or enable the channel from a different thread than this callback as those methods cannot be called on the Tokio runtime
- Parameters
-
| remote_addr | Socket address of the remote outstation, e.g. 192.168.0.22:51532 |
| source | Source address from the frame |
| destination | Destination address from the frame |
| channel | Class used to control the channel |
| ctx | Context data |
The documentation for this struct was generated from the following file: