Fix server_socket close override (#3853)

This commit is contained in:
Piotr Wójcik 2022-07-09 14:12:18 +02:00 committed by GitHub
commit 858d074a30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,7 @@ public:
void async_read (std::shared_ptr<std::vector<uint8_t>> const &, std::size_t, std::function<void (boost::system::error_code const &, std::size_t)>);
void async_write (nano::shared_const_buffer const &, std::function<void (boost::system::error_code const &, std::size_t)> = {});
void close ();
virtual void close ();
boost::asio::ip::tcp::endpoint remote_endpoint () const;
boost::asio::ip::tcp::endpoint local_endpoint () const;
/** Returns true if the socket has timed out */
@ -193,7 +193,7 @@ public:
/**Start accepting new connections */
void start (boost::system::error_code &);
/** Stop accepting new connections */
void close ();
void close () override;
/** Register callback for new connections. The callback must return true to keep accepting new connections. */
void on_connection (std::function<bool (std::shared_ptr<nano::socket> const & new_connection, boost::system::error_code const &)>);
uint16_t listening_port ()