Struct Intercept
- Namespace
- Xabbo
- Assembly
- Xabbo.Common.dll
Contains the event arguments of an intercepted packet.
public readonly ref struct Intercept
- Inherited Members
Constructors
Intercept(IInterceptor, ref IPacket, ref bool)
Contains the event arguments of an intercepted packet.
public Intercept(IInterceptor interceptor, ref IPacket packet, ref bool block)
Parameters
interceptor
IInterceptorpacket
IPacketblock
bool
Properties
Direction
Gets the direction of the packet.
public Direction Direction { get; }
Property Value
Interceptor
Gets the interceptor that intercepted this packet.
public IInterceptor Interceptor { get; }
Property Value
IsBlocked
Gets whether the packet will be blocked by the interceptor.
public bool IsBlocked { get; }
Property Value
Packet
Gets or replaces the intercepted packet.
public IPacket Packet { get; set; }
Property Value
Sequence
Gets the sequence number of the intercepted packet.
public int Sequence { get; init; }
Property Value
Timestamp
Gets the time that the packet was intercepted.
public DateTime Timestamp { get; }
Property Value
Methods
Block()
Flags the packet to be blocked from its destination by the interceptor.
public void Block()
Is(ReadOnlySpan<Identifier>)
Gets whether the intercepted packet's unmodified header matches any of the specified identifiers.
public bool Is(ReadOnlySpan<Identifier> identifiers)
Parameters
identifiers
ReadOnlySpan<Identifier>