Callback interface invoked when a new connection is accepted.
More...
#include <opendnp3/master/DefaultListenCallbacks.h>
Callback interface invoked when a new connection is accepted.
Definition at line 32 of file DefaultListenCallbacks.h.
◆ DefaultListenCallbacks()
opendnp3::DefaultListenCallbacks::DefaultListenCallbacks |
( |
| ) |
|
◆ ~DefaultListenCallbacks()
virtual opendnp3::DefaultListenCallbacks::~DefaultListenCallbacks |
( |
| ) |
|
|
inlinevirtual |
◆ AcceptCertificate()
virtual bool opendnp3::DefaultListenCallbacks::AcceptCertificate |
( |
uint64_t |
sessionid, |
|
|
const X509Info & |
info |
|
) |
| |
|
overridevirtual |
Ask user code if the following preverified certificate should be accepted.
- Parameters
-
sessionid | Incrementing id used to uniquely identify the session |
info | Information from the x509 certificate |
- Returns
- If true, if the certificate should be accepted, false otherwise.
Implements opendnp3::IListenCallbacks.
◆ AcceptConnection()
virtual bool opendnp3::DefaultListenCallbacks::AcceptConnection |
( |
uint64_t |
sessionid, |
|
|
const std::string & |
ipaddress |
|
) |
| |
|
overridevirtual |
Ask user code if the following connection should be accepted.
- Parameters
-
sessionid | Incrementing id used to uniquely identify the session |
ipaddress | The IP address of the connecting host. Can optionally be used for connection filtering |
- Returns
- If true, the connection is accepted and a link frame parser is created to handle incoming frame data
Implements opendnp3::IListenCallbacks.
◆ GetFirstFrameTimeout()
virtual TimeDuration opendnp3::DefaultListenCallbacks::GetFirstFrameTimeout |
( |
| ) |
|
|
overridevirtual |
◆ OnCertificateError()
virtual void opendnp3::DefaultListenCallbacks::OnCertificateError |
( |
uint64_t |
sessionid, |
|
|
const X509Info & |
info, |
|
|
int |
error |
|
) |
| |
|
overridevirtual |
Called when a certificate fails verification.
- Parameters
-
sessionid | Incrementing id used to uniquely identify the session |
info | Information from the x509 certificate |
error | Error code with reason for failed verification |
Implements opendnp3::IListenCallbacks.
◆ OnConnectionClose()
virtual void opendnp3::DefaultListenCallbacks::OnConnectionClose |
( |
uint64_t |
sessionid, |
|
|
const std::shared_ptr< IMasterSession > & |
session |
|
) |
| |
|
overridevirtual |
Called when a socket closes.
- Parameters
-
sessionid | Incrementing id used to uniquely identify the session |
session | Possibly NULL shared_ptr to the master session if it was created |
Implements opendnp3::IListenCallbacks.
◆ OnFirstFrame()
◆ SessionIdToString()
std::string opendnp3::DefaultListenCallbacks::SessionIdToString |
( |
uint64_t |
id | ) |
|
|
private |
The documentation for this class was generated from the following file: