Signed-off-by: Amnon Hanuhov <ahanukov@redhat.com>
#endif
/// send a message over a connection that has completed its handshake
+ virtual seastar::future<> send(MessageURef msg) = 0;
+ // The version with MessageRef will be dropped in the future
virtual seastar::future<> send(MessageRef msg) = 0;
/// send a keepalive message over a connection that has completed its
return (messenger.get_myaddr() > peer_addr || policy.server);
}
+seastar::future<> SocketConnection::send(MessageURef msg)
+{
+ assert(seastar::this_shard_id() == shard_id());
+ return protocol->send(MessageRef{msg.release()});
+}
+
seastar::future<> SocketConnection::send(MessageRef msg)
{
assert(seastar::this_shard_id() == shard_id());
bool peer_wins() const;
#endif
+ seastar::future<> send(MessageURef msg) override;
seastar::future<> send(MessageRef msg) override;
seastar::future<> keepalive() override;