summaryrefslogtreecommitdiff
path: root/protocols/Telegram/tdlib/td/td/mtproto/RawConnection.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Telegram/tdlib/td/td/mtproto/RawConnection.h')
-rw-r--r--protocols/Telegram/tdlib/td/td/mtproto/RawConnection.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/Telegram/tdlib/td/td/mtproto/RawConnection.h b/protocols/Telegram/tdlib/td/td/mtproto/RawConnection.h
index a2cafff1fa..aee159771b 100644
--- a/protocols/Telegram/tdlib/td/td/mtproto/RawConnection.h
+++ b/protocols/Telegram/tdlib/td/td/mtproto/RawConnection.h
@@ -1,5 +1,5 @@
//
-// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2023
+// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2024
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -39,7 +39,7 @@ class RawConnection {
RawConnection() = default;
RawConnection(const RawConnection &) = delete;
RawConnection &operator=(const RawConnection &) = delete;
- virtual ~RawConnection() = default;
+ virtual ~RawConnection();
static unique_ptr<RawConnection> create(IPAddress ip_address, BufferedFd<SocketFd> buffered_socket_fd,
TransportType transport_type, unique_ptr<StatsCallback> stats_callback);
@@ -50,7 +50,7 @@ class RawConnection {
virtual TransportType get_transport_type() const = 0;
virtual size_t send_crypto(const Storer &storer, uint64 session_id, int64 salt, const AuthKey &auth_key,
uint64 quick_ack_token) = 0;
- virtual uint64 send_no_crypto(const Storer &storer) = 0;
+ virtual void send_no_crypto(const Storer &storer) = 0;
virtual PollableFdInfo &get_poll_info() = 0;
virtual StatsCallback *stats_callback() = 0;
@@ -61,9 +61,9 @@ class RawConnection {
Callback(const Callback &) = delete;
Callback &operator=(const Callback &) = delete;
virtual ~Callback() = default;
- virtual Status on_raw_packet(const PacketInfo &info, BufferSlice packet) = 0;
+ virtual Status on_raw_packet(const PacketInfo &packet_info, BufferSlice packet) = 0;
virtual Status on_quick_ack(uint64 quick_ack_token) {
- return Status::Error("Quick acknowledgements are unsupported by the callback");
+ return Status::Error("Quick acknowledgements aren't supported by the callback");
}
virtual Status before_write() {
return Status::OK();