mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
Adds virtual destructors to handler interfaces fixes #136
This commit is contained in:
@@ -187,6 +187,8 @@ public:
|
||||
// handler interface callback class
|
||||
class handler_interface {
|
||||
public:
|
||||
virtual ~handler_interface() {}
|
||||
|
||||
// Required
|
||||
virtual void on_open(connection_ptr con) {}
|
||||
virtual void on_close(connection_ptr con) {}
|
||||
|
||||
@@ -174,6 +174,8 @@ public:
|
||||
// handler interface callback base class
|
||||
class handler_interface {
|
||||
public:
|
||||
virtual ~handler_interface() {}
|
||||
|
||||
virtual void on_handshake_init(connection_ptr con) {}
|
||||
|
||||
virtual void validate(connection_ptr con) {}
|
||||
|
||||
@@ -52,6 +52,8 @@ public:
|
||||
// hooks that this policy adds to handlers of connections that use it
|
||||
class handler_interface {
|
||||
public:
|
||||
virtual ~handler_interface() {}
|
||||
|
||||
virtual void on_tcp_init() {};
|
||||
};
|
||||
|
||||
|
||||
@@ -69,6 +69,8 @@ public:
|
||||
// to set up their asio TLS context.
|
||||
class handler_interface {
|
||||
public:
|
||||
virtual ~handler_interface() {}
|
||||
|
||||
virtual void on_tcp_init() {};
|
||||
virtual boost::shared_ptr<boost::asio::ssl::context> on_tls_init() = 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user