//
// IPacketDestination.cs
//
// Copyright (c) František Boháček. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using NosSmooth.Packets.Server.Skills;
namespace Anonymizer.Sinks;
///
/// An interface for sending packets to an arbitrary destination.
///
public interface IPacketDestination
{
///
/// Write the given packet string into the destination.
///
/// The packet info to write.
/// The cancellation token used for cancelling the operation.
/// A representing the asynchronous operation.
public Task WritePacketAsync(PacketInfo packetInfo, CancellationToken ct = default);
}