Table of Contents

Class P2PPacketReceivedEventArgs

Namespace
SteamNetworkLib.Events
Assembly
SteamNetworkLib.dll

Provides data for the P2P packet received event. Contains raw packet data and metadata about the received packet.

public class P2PPacketReceivedEventArgs : EventArgs
Inheritance
P2PPacketReceivedEventArgs
Inherited Members

Constructors

P2PPacketReceivedEventArgs(CSteamID, byte[], int, uint)

Initializes a new instance of the P2PPacketReceivedEventArgs class.

public P2PPacketReceivedEventArgs(CSteamID senderId, byte[] data, int channel, uint packetSize)

Parameters

senderId CSteamID

The Steam ID of the player who sent the packet.

data byte[]

The raw packet data that was received.

channel int

The communication channel on which the packet was received.

packetSize uint

The size of the received packet in bytes.

Properties

Channel

Gets the communication channel on which the packet was received.

public int Channel { get; }

Property Value

int

Data

Gets the raw packet data that was received.

public byte[] Data { get; }

Property Value

byte[]

PacketSize

Gets the size of the received packet in bytes.

public uint PacketSize { get; }

Property Value

uint

ReceivedAt

Gets the timestamp when the packet was received.

public DateTime ReceivedAt { get; }

Property Value

DateTime

SenderId

Gets the Steam ID of the player who sent the packet.

public CSteamID SenderId { get; }

Property Value

CSteamID