// // IPacketInterceptor.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. namespace NosSmooth.LocalClient; /// /// Used for intercepting packet communication, /// changing the contents of the packets and/or cancelling them altogether. /// public interface IPacketInterceptor { /// /// Intercept the given packet. /// /// The packet itself, if it is changed, the modified packet will be sent. /// Whether to send the packet to the server. public bool InterceptSend(ref string packet); /// /// Intercept the given packet. /// /// The packet itself, if it is changed, the modified packet will be received. /// Whether to receive the packet by the client. public bool InterceptReceive(ref string packet); }