Callback interface invoked when a new connection is accepted.
More...
#include <opendnp3/master/IListenCallbacks.h>
Callback interface invoked when a new connection is accepted.
Definition at line 34 of file IListenCallbacks.h.
◆ ~IListenCallbacks()
virtual opendnp3::IListenCallbacks::~IListenCallbacks |
( |
| ) |
|
|
inlinevirtual |
◆ AcceptCertificate()
virtual bool opendnp3::IListenCallbacks::AcceptCertificate |
( |
uint64_t |
sessionid, |
|
|
const X509Info & |
info |
|
) |
| |
|
pure virtual |
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.
Implemented in opendnp3::DefaultListenCallbacks.
◆ AcceptConnection()
virtual bool opendnp3::IListenCallbacks::AcceptConnection |
( |
uint64_t |
sessionid, |
|
|
const std::string & |
ipaddress |
|
) |
| |
|
pure virtual |
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
Implemented in opendnp3::DefaultListenCallbacks.
◆ GetFirstFrameTimeout()
virtual TimeDuration opendnp3::IListenCallbacks::GetFirstFrameTimeout |
( |
| ) |
|
|
pure virtual |
◆ OnCertificateError()
virtual void opendnp3::IListenCallbacks::OnCertificateError |
( |
uint64_t |
sessionid, |
|
|
const X509Info & |
info, |
|
|
int |
error |
|
) |
| |
|
pure virtual |
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 |
Implemented in opendnp3::DefaultListenCallbacks.
◆ OnConnectionClose()
virtual void opendnp3::IListenCallbacks::OnConnectionClose |
( |
uint64_t |
sessionid, |
|
|
const std::shared_ptr< IMasterSession > & |
session |
|
) |
| |
|
pure virtual |
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 |
Implemented in opendnp3::DefaultListenCallbacks.
◆ OnFirstFrame()
The documentation for this class was generated from the following file: