Table of Contents

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 IInterceptor
packet IPacket
block bool

Properties

Direction

Gets the direction of the packet.

public Direction Direction { get; }

Property Value

Direction

Interceptor

Gets the interceptor that intercepted this packet.

public IInterceptor Interceptor { get; }

Property Value

IInterceptor

IsBlocked

Gets whether the packet will be blocked by the interceptor.

public bool IsBlocked { get; }

Property Value

bool

Packet

Gets or replaces the intercepted packet.

public IPacket Packet { get; set; }

Property Value

IPacket

Sequence

Gets the sequence number of the intercepted packet.

public int Sequence { get; init; }

Property Value

int

Timestamp

Gets the time that the packet was intercepted.

public DateTime Timestamp { get; }

Property Value

DateTime

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>

Returns

bool